mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2024-11-12 21:09:01 +00:00
[array.swap] Fix document typo
This commit is contained in:
parent
5555101ad5
commit
ee965b7f5d
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ Examples
|
|||
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}};
|
||||
x.swap(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
|
||||
========================================
|
||||
|
|
Loading…
Reference in a new issue