Skip to content

Commit 7db2013

Browse files
Apply suggestions from code review
Co-authored-by: philnik777 <[email protected]>
1 parent e69008d commit 7db2013

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/test/std/algorithms/alg.modifying.operations/alg.fill/ranges.fill.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ constexpr bool test() {
120120
{
121121
std::array<std::string, 10> a;
122122
auto ret = std::ranges::fill(a.begin(), a.end(), "long long string so no SSO");
123-
assert(ret == a.begin() + a.size());
123+
assert(ret == a.end());
124124
assert(std::all_of(a.begin(), a.end(), [](auto& s) { return s == "long long string so no SSO"; }));
125125
}
126126
{
127127
std::array<std::string, 10> a;
128128
auto ret = std::ranges::fill(a, "long long string so no SSO");
129-
assert(ret == a.begin() + a.size());
129+
assert(ret == a.end());
130130
assert(std::all_of(a.begin(), a.end(), [](auto& s) { return s == "long long string so no SSO"; }));
131131
}
132132
}

0 commit comments

Comments
 (0)