diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index d42fced..241e7d6 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -2540,7 +2540,7 @@ Informal/non-explicit ranges are a source of errors. ##### Note -Ranges are extremely common in C++ code. Typically, they are implicit and their correct use is very hard to ensure. In particular, given a pair of arguments `(p, n)` designating an array [`p`:`p+n`), it is in general impossible to know if there really are n elements to access following `*p`. `span` and `span_p` are simple helper classes designating a [p:q) range and a range starting with p and ending with the first element for which a predicate is true, respectively. +Ranges are extremely common in C++ code. Typically, they are implicit and their correct use is very hard to ensure. In particular, given a pair of arguments `(p, n)` designating an array [`p`:`p+n`), it is in general impossible to know if there really are `n` elements to access following `*p`. `span` and `span_p` are simple helper classes designating a [`p`:`q`) range and a range starting with `p` and ending with the first element for which a predicate is true, respectively. ##### Note