about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authoraochagavia <aochagavia92@gmail.com>2014-03-14 16:32:04 +0100
committeraochagavia <aochagavia92@gmail.com>2014-03-14 16:32:04 +0100
commitdcf320a6394c712aaeca1cd39f054b11c129af97 (patch)
tree184a585f689d98854d89b0eeed06ef3a60de3a87 /src/libstd
parent62f1d68439dcfd509eaca29887afa97f22938373 (diff)
downloadrust-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.rs2
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 {