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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue