Skip to content

Broken link in PartialEq documentation #73233

Closed
@Darksonn

Description

@Darksonn

In the documentation for PartialEq, you will find the following:

This trait allows for partial equality, for types that do not have a full equivalence relation. For example, in floating point numbers NaN != NaN, so floating point types implement PartialEq but not Eq.

The link on this page is not actually a link to the Eq trait, but a link to the PartialEq::eq method on the same page.

The link is written as [`Eq`] with an [`eq`]: PartialEq::eq in the same doc-comment, so I am unsure whether this should be considered an issue in the documentation, or in rustdoc.

This issue has been assigned to @poliorcetics via this comment.

Metadata

Metadata

Assignees

Labels

A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions