Skip to content

Commit dcf320a

Browse files
committed
Fixed comment of as_mut_slice (libstd/option.rs)
The old comment did not describe the function correctly
1 parent 62f1d68 commit dcf320a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl<T> Option<T> {
104104
}
105105
}
106106

107-
/// Convert from `Option<T>` to `&[T]` (without copying)
107+
/// Convert from `Option<T>` to `&mut [T]` (without copying)
108108
#[inline]
109109
pub fn as_mut_slice<'r>(&'r mut self) -> &'r mut [T] {
110110
match *self {

0 commit comments

Comments
 (0)