Fix example in std::Option
This commit is contained in:
parent
b7bbc2eea2
commit
eb519b952d
|
@ -28,7 +28,7 @@ let msg = Some(~"howdy");
|
||||||
|
|
||||||
// Take a reference to the contained string
|
// Take a reference to the contained string
|
||||||
match msg {
|
match msg {
|
||||||
Some(ref m) => io::println(m),
|
Some(ref m) => io::println(*m),
|
||||||
None => ()
|
None => ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue