Correct example comment

pull/1125/merge
Herb Sutter 8 years ago
parent e1cc6fedb0
commit 7aac5313d9

@ -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);
~~~

Loading…
Cancel
Save