Skip to content

Commit 5b32654

Browse files
committed
Reword comments in test file
1 parent 8416929 commit 5b32654

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libcxx/test/libcxx/containers/views/views.span/span.cons/assert.iter_size.pass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
int main(int, char**) {
2828
std::array<int, 3> array{0, 1, 2};
2929

30-
// Providing too large value in constructor
30+
// Input range too large (exceeds the span extent)
3131
{
3232
auto f = [&] {
3333
std::span<int, 3> const s(array.data(), 4);
@@ -36,7 +36,7 @@ int main(int, char**) {
3636
TEST_LIBCPP_ASSERT_FAILURE(f(), "size mismatch in span's constructor (iterator, len)");
3737
}
3838

39-
// Providing too small value in constructor
39+
// Input range too small (doesn't fill the span)
4040
{
4141
auto f = [&] {
4242
std::span<int, 3> const s(array.data(), 2);
@@ -45,7 +45,7 @@ int main(int, char**) {
4545
TEST_LIBCPP_ASSERT_FAILURE(f(), "size mismatch in span's constructor (iterator, len)");
4646
}
4747

48-
// Providing nullptr with a non-zero size in construction
48+
// Input range is non-empty but starts with a null pointer
4949
{
5050
// static extent
5151
{

0 commit comments

Comments
 (0)