Skip to content

Commit f57e9d0

Browse files
author
Jorge Aparicio
committed
Fix SliceMut documentation
The syntax sugar is `[mut from..to]` not `[from..to]`
1 parent 5d653c1 commit f57e9d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/ops.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -764,13 +764,13 @@ pub trait Slice<Idx, Sized? Result> for Sized? {
764764
// FIXME(#17273) remove the postscript _s
765765
#[lang="slice_mut"]
766766
pub trait SliceMut<Idx, Sized? Result> for Sized? {
767-
/// The method for the slicing operation foo[]
767+
/// The method for the slicing operation foo[mut]
768768
fn as_mut_slice_<'a>(&'a mut self) -> &'a mut Result;
769-
/// The method for the slicing operation foo[from..]
769+
/// The method for the slicing operation foo[mut from..]
770770
fn slice_from_mut_<'a>(&'a mut self, from: &Idx) -> &'a mut Result;
771-
/// The method for the slicing operation foo[..to]
771+
/// The method for the slicing operation foo[mut ..to]
772772
fn slice_to_mut_<'a>(&'a mut self, to: &Idx) -> &'a mut Result;
773-
/// The method for the slicing operation foo[from..to]
773+
/// The method for the slicing operation foo[mut from..to]
774774
fn slice_mut_<'a>(&'a mut self, from: &Idx, to: &Idx) -> &'a mut Result;
775775
}
776776
/**

0 commit comments

Comments
 (0)