Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7aac531

Browse files
committed
Correct example comment
1 parent e1cc6fe commit 7aac531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/gsl-intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ dangerous_process_ints(&*remainder, v.end() - remainder); // correct but convolu
5959
Instead, using `span` encapsulates the pointer and the length:
6060

6161
~~~cpp
62-
// BETTER: Read n contiguous ints starting at *p
62+
// BETTER: Read s.size() contiguous ints starting at s[0]
6363
void process_ints(span<const int> s);
6464
~~~
6565

0 commit comments

Comments
 (0)