From 73d40c30b5153baef5214b41bd5fcfffe1e08b89 Mon Sep 17 00:00:00 2001 From: Alexis Beingessner Date: Tue, 9 Dec 2014 14:00:58 -0500 Subject: [PATCH] Update 0000-collections-reform-part-2.md --- text/0000-collections-reform-part-2.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/text/0000-collections-reform-part-2.md b/text/0000-collections-reform-part-2.md index de146a59852..9a2f16668e5 100644 --- a/text/0000-collections-reform-part-2.md +++ b/text/0000-collections-reform-part-2.md @@ -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. @@ -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 \ No newline at end of file +[part1]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md