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

Merge pull request #40 from kariya-mitsuru/fill-doc

[array.fill] Fix document typo.
This commit is contained in:
Bolero MURAKAMI 2013-09-08 08:09:11 -07:00
commit 7c693adefc

View file

@ -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.fill(0); x.fill(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.fill(0); SPROUT_STATIC_CONSTEXPR auto y = x.fill(0);
static_assert(y[0] = 0, "filled with 0."); static_assert(y[0] == 0, "filled with 0.");
Complexity Complexity
======================================== ========================================