Fixed comment of as_mut_slice (libstd/option.rs)
The old comment did not describe the function correctly
This commit is contained in:
parent
62f1d68439
commit
dcf320a639
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user