Skip to content

Commit 498e33a

Browse files
authored
Remove comma in requires standard version comments
1 parent d2ea1c7 commit 498e33a

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

docs/standard-library/basic-istream-view-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ The best way to create a `basic_istream_view` is by using the [`views::istream`]
117117
### Example: `basic_istream_view`, `istream_view`, and `wistream_view`
118118
119119
```cpp
120-
// requires /std:c++20, or later
120+
// requires /std:c++20 or later
121121
#include <ranges>
122122
#include <iostream>
123123
#include <sstream>

docs/standard-library/iota-view-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ When you use one of the constructors that value-initializes the bound, the bound
116116
## `iota_view` constructor example
117117
118118
```cpp
119-
// requires /std:c++20, or later
119+
// requires /std:c++20 or later
120120
#include <ranges>
121121
#include <iostream>
122122
#include <vector>

docs/standard-library/join-view-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ For information about the template parameter type, see [Template parameters](#te
9090
### Example: `join_view`
9191

9292
```cpp
93-
// requires /std:c++20, or later
93+
// requires /std:c++20 or later
9494
#include <iostream>
9595
#include <vector>
9696
#include <ranges>

docs/standard-library/ranges-alias-templates.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ helpviewer_keywords: ["std::ranges [C++], ranges::borrowed_iterator_t", "std::ra
1010
An alias template is an alias for another type, which can make code more readable. For example, the following alias, `conditional_t`, is an alias for either `borrowed_range` or `dangling` range, depending on the kind of `range` that's passed in:
1111

1212
```cpp
13-
// requires /std:c++20, or later
13+
// requires /std:c++20 or later
1414

1515
#include <iostream>
1616
#include <list>
@@ -94,7 +94,7 @@ If an algorithm function is passed a range whose iterators depend on its lifetim
9494
The following example shows how `borrowed_iterator_t` detects a dangling iterator. The function `ranges::max_element()` uses this template alias to determine the return type:
9595

9696
```cpp
97-
// requires /std:c++20, or later
97+
// requires /std:c++20 or later
9898

9999
#include <vector>
100100
#include <span>
@@ -165,7 +165,7 @@ If an algorithm function is passed a range whose iterators depend on its lifetim
165165
The following example shows how `borrowed_subrange_t` detects a dangling iterator because `equal_range()` and `max_element` use this template alias to determine the return type:
166166

167167
```cpp
168-
// requires /std:c++20, or later
168+
// requires /std:c++20 or later
169169

170170
#include <vector>
171171
#include <iostream>
@@ -228,7 +228,7 @@ A variable number of non-`void` types. They have no effect. The arguments are a
228228
The following example shows how `max_element` detects a dangling iterator.
229229
230230
```cpp
231-
// requires /std:c++20, or later
231+
// requires /std:c++20 or later
232232
233233
#include <vector>
234234
#include <iostream>
@@ -272,7 +272,7 @@ The range type to get the iterator type for.
272272
The following example shows how `iterator_t` can be used to declare an iterator for a vector:
273273

274274
```cpp
275-
// requires /std:c++20, or later
275+
// requires /std:c++20 or later
276276

277277
#include <vector>
278278
#include <ranges>
@@ -314,7 +314,7 @@ The range whose iterator will provide the difference type.
314314
The following example shows how `range_difference_t` is used to hold the distance between elements in a range:
315315

316316
```cpp
317-
// requires /std:c++20, or later
317+
// requires /std:c++20 or later
318318

319319
#include <vector>
320320
#include <ranges>
@@ -356,7 +356,7 @@ The range for which the reference type of its iterator type is returned.
356356
The following example shows `range_reference_t` referring to the type of the elements in a range:
357357

358358
```cpp
359-
// requires /std:c++20, or later
359+
// requires /std:c++20 or later
360360

361361
#include <vector>
362362
#include <ranges>
@@ -399,7 +399,7 @@ The range to get the rvalue reference type to its iterator type.
399399
The following example shows `range_rvalue_reference_t` referring to a rvalue type of the elements in a range:
400400

401401
```cpp
402-
// requires /std:c++20, or later
402+
// requires /std:c++20 or later
403403

404404
#include <vector>
405405
#include <ranges>
@@ -442,7 +442,7 @@ The range to get the type of its `size` function.
442442
The following example shows `range_size_t` referring to the number of elements in a range:
443443

444444
```cpp
445-
// requires /std:c++20, or later
445+
// requires /std:c++20 or later
446446

447447
#include <vector>
448448
#include <iostream>
@@ -484,7 +484,7 @@ The range to get the value type of its iterator.
484484
The following example shows how `range_value_t` refers to the type of elements in a range:
485485

486486
```cpp
487-
// requires /std:c++20, or later
487+
// requires /std:c++20 or later
488488

489489
#include <vector>
490490
#include <ranges>
@@ -526,7 +526,7 @@ The range to get the sentinel type for.
526526
The following example shows using `sentinel_t` to determine whether the iterator type and sentinel type are the same:
527527

528528
```cpp
529-
// requires /std:c++20, or later
529+
// requires /std:c++20 or later
530530

531531
#include <iostream>
532532
#include <list>

docs/standard-library/view-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Using a view after the range that it's based on is modified can lead to undefine
5151
Because views are cheap to create, you should generally re-create a view if you modify the underlying range. The following example demonstrates how to store a view pipeline in a variable so that you can reuse it.
5252

5353
```cpp
54-
// requires /std:c++20, or later
54+
// requires /std:c++20 or later
5555
#include <iostream>
5656
#include <ranges>
5757
#include <vector>

0 commit comments

Comments
 (0)