Fix example in std::Option

This commit is contained in:
Grigoriy 2013-09-21 02:00:20 +04:00
parent b7bbc2eea2
commit eb519b952d
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ let msg = Some(~"howdy");
// Take a reference to the contained string
match msg {
Some(ref m) => io::println(m),
Some(ref m) => io::println(*m),
None => ()
}