diff options
| author | Grigoriy <ohaistarlight@gmail.com> | 2013-09-21 02:00:20 +0400 |
|---|---|---|
| committer | Grigoriy <ohaistarlight@gmail.com> | 2013-09-21 02:00:20 +0400 |
| commit | eb519b952d2cc2b2af6b3be38377daa431983929 (patch) | |
| tree | f4cfae204c3c6ee17adaa4b9594976741c3c510f /src/libstd | |
| parent | b7bbc2eea2d0c3c3fb5045a77e5bfbc10866d14a (diff) | |
| download | rust-eb519b952d2cc2b2af6b3be38377daa431983929.tar.gz rust-eb519b952d2cc2b2af6b3be38377daa431983929.zip | |
Fix example in std::Option
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/option.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/option.rs b/src/libstd/option.rs index 42878f6effb..37c5807c70b 100644 --- a/src/libstd/option.rs +++ b/src/libstd/option.rs @@ -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 => () } |
