Skip to content

Commit

Permalink
Fix SliceMut documentation
Browse files Browse the repository at this point in the history
The syntax sugar is `[mut from..to]` not `[from..to]`
  • Loading branch information
Jorge Aparicio committed Sep 26, 2014
1 parent 5d653c1 commit f57e9d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libcore/ops.rs
Expand Up @@ -764,13 +764,13 @@ pub trait Slice<Idx, Sized? Result> for Sized? {
// FIXME(#17273) remove the postscript _s
#[lang="slice_mut"]
pub trait SliceMut<Idx, Sized? Result> 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;
}
/**
Expand Down

0 comments on commit f57e9d0

Please sign in to comment.