Correct example comment

This commit is contained in:
Herb Sutter
2018-01-09 11:02:25 -05:00
parent e1cc6fedb0
commit 7aac5313d9

View File

@@ -59,7 +59,7 @@ dangerous_process_ints(&*remainder, v.end() - remainder); // correct but convolu
Instead, using `span` encapsulates the pointer and the length:
~~~cpp
// BETTER: Read n contiguous ints starting at *p
// BETTER: Read s.size() contiguous ints starting at s[0]
void process_ints(span<const int> s);
~~~