From 263c68c098ec1e9b6abccf68bd27ae11391d8f51 Mon Sep 17 00:00:00 2001 From: Mitsuru Kariya Date: Sun, 8 Sep 2013 23:36:53 +0900 Subject: [PATCH] [array.assign] Fix document typo --- source/libs/array/array/assign.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libs/array/array/assign.rst b/source/libs/array/array/assign.rst index c535fe4b..76f9e6f2 100644 --- a/source/libs/array/array/assign.rst +++ b/source/libs/array/array/assign.rst @@ -31,7 +31,7 @@ Examples auto x = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; x.assign(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.assign(0); - static_assert(y[0] = 0, "filled with 0."); + static_assert(y[0] == 0, "filled with 0."); Complexity ========================================