Skip to content

Conversation

sw17ch
Copy link
Contributor

@sw17ch sw17ch commented Apr 21, 2015

The documentation doesn't appear to describe the &foo[..] syntax.

I tried looking in primitive-types.html#slices and std/primitive.slice.html.

There's an example of partially slicing an array in trpl and a mention of &foo[..] in the standard library documentation, but neither place, from what I can see, actually describes the behavior of &foo[..].

+r? @steveklabnik

@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @steveklabnik (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see CONTRIBUTING.md for more information.

@steveklabnik
Copy link
Contributor

@bors: r+ rollup

@bors
Copy link
Collaborator

bors commented Apr 21, 2015

📌 Commit 5f7556c has been approved by steveklabnik

@steveklabnik
Copy link
Contributor

Thank you! :D

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Apr 21, 2015
The documentation doesn't appear to describe the `&foo[..]` syntax.

I tried looking in `primitive-types.html#slices` and `std/primitive.slice.html`.

There's an example of partially slicing an array in trpl and a mention of `&foo[..]` in [the standard library documentation](https://doc.rust-lang.org/std/primitive.slice.html), but neither place, from what I can see, actually describes the behavior of `&foo[..]`.

+r? @steveklabnik
@bors bors merged commit 5f7556c into rust-lang:master Apr 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants