-
Notifications
You must be signed in to change notification settings - Fork 13.3k
std docs: strange notation in std::pin docs #59832
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
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Comments
It is trying to say |
We should be more explicit then, nowhere else in the docs uses this notation.
… On Apr 9, 2019, at 7:01 PM, Mazdak Farrokhzad ***@***.***> wrote:
It is trying to say &Self / &mut Self.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
It is used in other places inside rustc. The syntax makes sense to me personally.
|
I'm going to open a pr for this... |
Centril
added a commit
to Centril/rust
that referenced
this issue
Apr 14, 2019
…in-pin-docs, r=RalfJung Remove [mut] syntax in pin docs Resolves rust-lang#59832
Centril
added a commit
to Centril/rust
that referenced
this issue
Apr 14, 2019
…in-pin-docs, r=RalfJung Remove [mut] syntax in pin docs Resolves rust-lang#59832
Centril
added a commit
to Centril/rust
that referenced
this issue
Apr 14, 2019
…in-pin-docs, r=RalfJung Remove [mut] syntax in pin docs Resolves rust-lang#59832
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
The std::pin module uses strange
[mut]
notation. For example,Pin<&[mut] Self>)
. I cannot discern what it is trying to say. I think it should probably not use the brackets, or explain what the syntax means?The text was updated successfully, but these errors were encountered: