diff options
| author | aochagavia <aochagavia92@gmail.com> | 2014-03-14 16:32:04 +0100 |
|---|---|---|
| committer | aochagavia <aochagavia92@gmail.com> | 2014-03-14 16:32:04 +0100 |
| commit | dcf320a6394c712aaeca1cd39f054b11c129af97 (patch) | |
| tree | 184a585f689d98854d89b0eeed06ef3a60de3a87 /src/libstd | |
| parent | 62f1d68439dcfd509eaca29887afa97f22938373 (diff) | |
| download | rust-dcf320a6394c712aaeca1cd39f054b11c129af97.tar.gz rust-dcf320a6394c712aaeca1cd39f054b11c129af97.zip | |
Fixed comment of as_mut_slice (libstd/option.rs)
The old comment did not describe the function correctly
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/option.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/option.rs b/src/libstd/option.rs index 86f8c143a9e..d315e8e3219 100644 --- a/src/libstd/option.rs +++ b/src/libstd/option.rs @@ -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 { |
