Skip to content

Commit eb519b9

Browse files
author
Grigoriy
committed
Fix example in std::Option
1 parent b7bbc2e commit eb519b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ let msg = Some(~"howdy");
2828
2929
// Take a reference to the contained string
3030
match msg {
31-
Some(ref m) => io::println(m),
31+
Some(ref m) => io::println(*m),
3232
None => ()
3333
}
3434

0 commit comments

Comments
 (0)