Merge pull request #510 from ZhangWangda/patch-1

fix typo
This commit is contained in:
Andrew Pardoe 2016-02-01 10:25:01 -08:00
commit 0712b24c91

View File

@ -2641,7 +2641,7 @@ A `span` represents a range of elements, but how do we manipulate elements of th
for (int x : s) cout << x << '\n'; // range traversal (guaranteed correct)
for (int i = 0; i<s.size(); ++i) cout << x << '\n'; // C-style traversal (potentially checked)
s[7] = 9; // random access (potentially checked)
std::sort(&s[0],&s[s.size()/2); // extract pointers (potentially checked)
std::sort(&s[0],&s[s.size()/2]); // extract pointers (potentially checked)
}
##### Note