tutorial: add missing line to make example build.

This commit is contained in:
Lindsey Kuper 2014-01-05 22:02:16 -05:00
parent 4f1ebef96a
commit 8224816a34

View 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) }
}