-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Libstd overview docs call slices "references to arrays" #23632
Comments
steveklabnik
added a commit
to steveklabnik/rust
that referenced
this issue
Mar 23, 2015
steveklabnik
added a commit
to steveklabnik/rust
that referenced
this issue
Mar 23, 2015
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Mar 23, 2015
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Mar 24, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think that in modern Rust parlance
[T]
is a slice and&[T]
is a "borrowed slice" (hooray DST). Moreover, if[T; n]
is an "array" then a borrowed slice may be a reference to some contiguous region that isn't backed by an array. This might seem pedantic but I think it's important to be clear that&[T]
may not actually point to an array.My suggested rewording would be:
The text was updated successfully, but these errors were encountered: