diff --git a/source/libs/array/array/swap-global.rst b/source/libs/array/array/swap-global.rst index 774a6c8c..418bb143 100644 --- a/source/libs/array/array/swap-global.rst +++ b/source/libs/array/array/swap-global.rst @@ -33,7 +33,7 @@ Examples auto x = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; auto y = array{{10, 9, 8, 7, 6, 5, 4, 3, 2, 1}}; swap(x, y); - SPROUT_ASSERT_MSG(x[0] = 10 && y[0] == 1, "each element are swapped."); + SPROUT_ASSERT_MSG(x[0] == 10 && y[0] == 1, "each element are swapped."); Complexity ========================================