Skip to content

Missing PartialOrd comment for array #122073

Closed
@KonradHoeffner

Description

@KonradHoeffner

Location

library/core/src/array/mod.rs

Summary

The trait implementation of Ord for arrays is properly commented:

impl<T, const N: usize> Ord for [T; N]
where
T: Ord,

Implements comparison of arrays lexicographically.

However this is missing for PartialOrd:

impl<T, const N: usize> PartialOrd for [T; N]
where
T: PartialOrd,

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions