Skip to content

Commit 6314133

Browse files
authored
Fix missing class keyword for template parameters in <array> operators reference
1 parent 7511547 commit 6314133

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/standard-library/array-operators.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The `<array>` header includes these **array** non-member comparison template fun
1313
Array comparison, not equal.
1414

1515
```cpp
16-
template <Ty, std::size_t N>
16+
template <class Ty, std::size_t N>
1717
bool operator!=(
1818
const array<Ty, N>& left,
1919
const array<Ty, N>& right);
@@ -86,7 +86,7 @@ true
8686
Array comparison, less than.
8787

8888
```cpp
89-
template <Ty, std::size_t N>
89+
template <class Ty, std::size_t N>
9090
bool operator<(
9191
const array<Ty, N>& left,
9292
const array<Ty, N>& right);
@@ -159,7 +159,7 @@ true
159159
Array comparison, less than or equal.
160160

161161
```cpp
162-
template <Ty, std::size_t N>
162+
template <class Ty, std::size_t N>
163163
bool operator<=(
164164
const array<Ty, N>& left,
165165
const array<Ty, N>& right);
@@ -232,7 +232,7 @@ false
232232
Array comparison, equal.
233233

234234
```cpp
235-
template <Ty, std::size_t N>
235+
template <class Ty, std::size_t N>
236236
bool operator==(
237237
const array<Ty, N>& left,
238238
const array<Ty, N>& right);
@@ -305,7 +305,7 @@ false
305305
Array comparison, greater than.
306306

307307
```cpp
308-
template <Ty, std::size_t N>
308+
template <class Ty, std::size_t N>
309309
bool operator>(
310310
const array<Ty, N>& left,
311311
const array<Ty, N>& right);
@@ -378,7 +378,7 @@ true
378378
Array comparison, greater than or equal.
379379

380380
```cpp
381-
template <Ty, std::size_t N>
381+
template <class Ty, std::size_t N>
382382
bool operator>=(
383383
const array<Ty, N>& left,
384384
const array<Ty, N>& right);

0 commit comments

Comments
 (0)