]> git.lizzy.rs Git - rust.git/commitdiff
Fix example in std::Option
authorGrigoriy <ohaistarlight@gmail.com>
Fri, 20 Sep 2013 22:00:20 +0000 (02:00 +0400)
committerGrigoriy <ohaistarlight@gmail.com>
Fri, 20 Sep 2013 22:00:20 +0000 (02:00 +0400)
src/libstd/option.rs

index 42878f6effbae677d3ab33815f69ab59d6113ce7..37c5807c70b414aae1253b7d91ba76f10ea2b840 100644 (file)
@@ -28,7 +28,7 @@
 
 // Take a reference to the contained string
 match msg {
-    Some(ref m) => io::println(m),
+    Some(ref m) => io::println(*m),
     None => ()
 }