From 7aac5313d9b0e288d33cc811c3b31378fde87b23 Mon Sep 17 00:00:00 2001 From: Herb Sutter Date: Tue, 9 Jan 2018 11:02:25 -0500 Subject: [PATCH] Correct example comment --- docs/gsl-intro.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/gsl-intro.md b/docs/gsl-intro.md index c33ec6f..9187220 100644 --- a/docs/gsl-intro.md +++ b/docs/gsl-intro.md @@ -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 s); ~~~