Skip to content

Commit

Permalink
tutorial: add missing line to make example build.
Browse files Browse the repository at this point in the history
  • Loading branch information
lkuper committed Jan 6, 2014
1 parent 4f1ebef commit 8224816
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
}
Expand Down

0 comments on commit 8224816

Please sign in to comment.