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
+1 -1
View File
@@ -104,7 +104,7 @@ pub fn as_slice<'r>(&'r self) -> &'r [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 {