]> git.lizzy.rs Git - rust.git/commit
rollup merge of #24665: sw17ch/document-complete-slice-syntax
authorAlex Crichton <alex@alexcrichton.com>
Tue, 21 Apr 2015 22:23:15 +0000 (15:23 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 21 Apr 2015 22:23:15 +0000 (15:23 -0700)
commit1a6c18d6608933240d964a1d1a9701a88453b48b
tree06fb9b2e79d8056b1027ac7963472cf58a90126e
parentee9d4eefbaf72ca113002216f95c61f34fe6e1bf
parent5f7556cd39217a3a7f27de18d3b7366dfe591f23
rollup merge of #24665: sw17ch/document-complete-slice-syntax

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