Skip to content

Commit

Permalink
Update 0000-collections-reform-part-2.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Gankra committed Dec 9, 2014
1 parent 32fdfb6 commit 73d40c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions text/0000-collections-reform-part-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ pub fn as_slices(&'a self) -> (&'a [T], &'a [T])
```
/// Gets a slice over all the elements in the RingBuf. This may require shifting
/// all the elements to make this possible.
pub fn to_slice(&'a self) -> &'a [T]
pub fn to_slice(&mut self) -> &[T]
```

The one settled on seemed to simply be the nicest.
Expand All @@ -303,4 +303,4 @@ The one settled on seemed to simply be the nicest.

`reserve_index` vs `reserve_len` and `Ringbuf::as_slice` are the two major ones.

[part1]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md
[part1]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md

0 comments on commit 73d40c3

Please sign in to comment.