Skip to content

Commit bb84afe

Browse files
committed
rollup merge of rust-lang#17564 : japaric/fix-slicemut-docs
2 parents e786891 + f57e9d0 commit bb84afe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/ops.rs

Lines changed: 4 additions & 4 deletions
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)