1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00

[array.swap-global] Fix document typo

This commit is contained in:
Mitsuru Kariya 2013-09-09 20:42:37 +09:00
parent 60814eec8a
commit a3411828f1

View file

@ -33,7 +33,7 @@ Examples
auto x = array<int, 10>{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; auto x = array<int, 10>{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}};
auto y = array<int, 10>{{10, 9, 8, 7, 6, 5, 4, 3, 2, 1}}; auto y = array<int, 10>{{10, 9, 8, 7, 6, 5, 4, 3, 2, 1}};
swap(x, y); 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 Complexity
======================================== ========================================