Fixed comment of as_mut_slice (libstd/option.rs)

The old comment did not describe the function correctly
This commit is contained in:
aochagavia 2014-03-14 16:32:04 +01:00
parent 62f1d68439
commit dcf320a639

View File

@ -104,7 +104,7 @@ impl<T> Option<T> {
}
}
/// Convert from `Option<T>` to `&[T]` (without copying)
/// Convert from `Option<T>` to `&mut [T]` (without copying)
#[inline]
pub fn as_mut_slice<'r>(&'r mut self) -> &'r mut [T] {
match *self {