diff --git a/source/libs/array/array/fill.rst b/source/libs/array/array/fill.rst index 6aa99f00..15e16456 100644 --- a/source/libs/array/array/fill.rst +++ b/source/libs/array/array/fill.rst @@ -31,7 +31,7 @@ Examples auto x = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; x.fill(0); - SPROUT_ASSERT_MSG(x[0] = 0, "filled with 0."); + SPROUT_ASSERT_MSG(x[0] == 0, "filled with 0."); .. sourcecode:: c++ @@ -40,7 +40,7 @@ Examples SPROUT_STATIC_CONSTEXPR auto x = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; SPROUT_STATIC_CONSTEXPR auto y = x.fill(0); - static_assert(y[0] = 0, "filled with 0."); + static_assert(y[0] == 0, "filled with 0."); Complexity ========================================