Skip to content

Typo in documentation of std::vec: Self should be self (2 times) #92345

Closed
@int-e

Description

@int-e

See the documentation for append here

/// Moves all the elements of `other` into `Self`, leaving `other` empty.

and for append_elements here:

/// Appends elements to `Self` from other buffer.

In both cases, the documentation refers to the object the method is called for, not the type, so it should be using the lower case self. (And maybe other should be in backticks here?)

Activity

BGR360

BGR360 commented on Dec 29, 2021

@BGR360
Contributor

@rustbot label +A-docs +T-libs +E-easy

added
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and tools
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-libsRelevant to the library team, which will review and decide on the PR/issue.
on Dec 29, 2021
Veeupup

Veeupup commented on Dec 29, 2021

@Veeupup
Contributor

@rustbot claim

added a commit that references this issue on Feb 28, 2022

Rollup merge of rust-lang#92399 - Veeupup:fix_vec_typo, r=Dylan-DPC

9d23c32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to 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.T-libsRelevant to the library team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @int-e@BGR360@Veeupup@rustbot

    Issue actions

      Typo in documentation of `std::vec`: `Self` should be `self` (2 times) · Issue #92345 · rust-lang/rust