Skip to content

Fix missing class keyword for template parameters in <array> operators reference #5515

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/standard-library/array-operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The `<array>` header includes these **array** non-member comparison template fun
Array comparison, not equal.

```cpp
template <Ty, std::size_t N>
template <class Ty, std::size_t N>
bool operator!=(
const array<Ty, N>& left,
const array<Ty, N>& right);
Expand Down Expand Up @@ -86,7 +86,7 @@ true
Array comparison, less than.

```cpp
template <Ty, std::size_t N>
template <class Ty, std::size_t N>
bool operator<(
const array<Ty, N>& left,
const array<Ty, N>& right);
Expand Down Expand Up @@ -159,7 +159,7 @@ true
Array comparison, less than or equal.

```cpp
template <Ty, std::size_t N>
template <class Ty, std::size_t N>
bool operator<=(
const array<Ty, N>& left,
const array<Ty, N>& right);
Expand Down Expand Up @@ -232,7 +232,7 @@ false
Array comparison, equal.

```cpp
template <Ty, std::size_t N>
template <class Ty, std::size_t N>
bool operator==(
const array<Ty, N>& left,
const array<Ty, N>& right);
Expand Down Expand Up @@ -305,7 +305,7 @@ false
Array comparison, greater than.

```cpp
template <Ty, std::size_t N>
template <class Ty, std::size_t N>
bool operator>(
const array<Ty, N>& left,
const array<Ty, N>& right);
Expand Down Expand Up @@ -378,7 +378,7 @@ true
Array comparison, greater than or equal.

```cpp
template <Ty, std::size_t N>
template <class Ty, std::size_t N>
bool operator>=(
const array<Ty, N>& left,
const array<Ty, N>& right);
Expand Down