From f57e9d0cc81f3a080eed5c29980c3fadb490102d Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Fri, 26 Sep 2014 11:53:47 -0500 Subject: [PATCH] Fix `SliceMut` documentation The syntax sugar is `[mut from..to]` not `[from..to]` --- src/libcore/ops.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index 718d311999552..ad0f128a02e78 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -764,13 +764,13 @@ pub trait Slice for Sized? { // FIXME(#17273) remove the postscript _s #[lang="slice_mut"] pub trait SliceMut for Sized? { - /// The method for the slicing operation foo[] + /// The method for the slicing operation foo[mut] fn as_mut_slice_<'a>(&'a mut self) -> &'a mut Result; - /// The method for the slicing operation foo[from..] + /// The method for the slicing operation foo[mut from..] fn slice_from_mut_<'a>(&'a mut self, from: &Idx) -> &'a mut Result; - /// The method for the slicing operation foo[..to] + /// The method for the slicing operation foo[mut ..to] fn slice_to_mut_<'a>(&'a mut self, to: &Idx) -> &'a mut Result; - /// The method for the slicing operation foo[from..to] + /// The method for the slicing operation foo[mut from..to] fn slice_mut_<'a>(&'a mut self, from: &Idx, to: &Idx) -> &'a mut Result; } /**