Skip to content

Commit

Permalink
Fixed comment of as_mut_slice (libstd/option.rs)
Browse files Browse the repository at this point in the history
The old comment did not describe the function correctly
  • Loading branch information
aochagavia committed Mar 14, 2014
1 parent 62f1d68 commit dcf320a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/option.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit dcf320a

Please sign in to comment.