]> git.lizzy.rs Git - rust.git/commitdiff
tutorial: add missing line to make example build.
authorLindsey Kuper <lindsey@composition.al>
Mon, 6 Jan 2014 03:02:16 +0000 (22:02 -0500)
committerLindsey Kuper <lindsey@composition.al>
Mon, 6 Jan 2014 03:03:13 +0000 (22:03 -0500)
doc/tutorial.md

index 65e7501a04cf183c47801773410b3a9f99c4c73d..b5eba8a113c09a6e54cb5e559fdbb9a5af9dfd90 100644 (file)
@@ -2189,6 +2189,7 @@ printable, and that we wanted the implementation of `print` for those
 types to be exactly as it is for `int`, above:
 
 ~~~~
+# trait Printable { fn print(&self); }
 impl Printable for f32 {
     fn print(&self) { println!("{:?}", *self) }
 }