mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-02-19 10:34:53 +00:00
[array.assign] Fix document typo
This commit is contained in:
parent
5555101ad5
commit
263c68c098
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,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}};
|
||||||
x.assign(0);
|
x.assign(0);
|
||||||
SPROUT_ASSERT_MSG(x[0] = 0, "filled with 0.");
|
SPROUT_ASSERT_MSG(x[0] == 0, "filled with 0.");
|
||||||
|
|
||||||
.. sourcecode:: c++
|
.. sourcecode:: c++
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ Examples
|
||||||
|
|
||||||
SPROUT_STATIC_CONSTEXPR auto x = array<int, 10>{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}};
|
SPROUT_STATIC_CONSTEXPR auto x = array<int, 10>{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}};
|
||||||
SPROUT_STATIC_CONSTEXPR auto y = x.assign(0);
|
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
|
Complexity
|
||||||
========================================
|
========================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue