Skip to content

Commit 2aec683

Browse files
authored
Fix a couple of errors in <ranges> concepts
1 parent d16f4c6 commit 2aec683

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/standard-library/range-concepts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ int main()
4343
DivideEmUp<int> dividerOfInts;
4444
std::cout << dividerOfInts.Divide(6, 3); // outputs 2
4545
// The following line will not compile because the template can't be instantiated
46-
// with char* because char* can be divided
46+
// with char* because char* can't be divided
4747
DivideEmUp<char*> dividerOfCharPtrs; // compiler error: cannot deduce template arguments
4848
}
4949
```
@@ -163,7 +163,7 @@ The type to test to see if it's a `contiguous_range`.
163163
164164
### Remarks
165165
166-
A `contiguous_range` can be accessed by pointer arithmetic because the elements are laid out sequentially in memory and are the same size. This kind of range supports [`continguous_iterator`](iterator-concepts.md#contiguous_iterator), which is the most flexible of all the iterators.
166+
A `contiguous_range` can be accessed by pointer arithmetic because the elements are laid out sequentially in memory and are the same size. This kind of range supports [`contiguous_iterator`](iterator-concepts.md#contiguous_iterator), which is the most flexible of all the iterators.
167167
168168
Some examples of a `contiguous_range` are `std::array`, `std::vector`, and `std::string`.
169169
@@ -270,7 +270,7 @@ bidirectional_range<T> && random_access_iterator<iterator_t<T>>;
270270
### Parameters
271271

272272
*`T`*\
273-
The type to test to see if it's a `sized_range`.
273+
The type to test to see if it's a `random_access_range`.
274274

275275
### Remarks
276276

0 commit comments

Comments
 (0)