Skip to content

Commit 8224816

Browse files
committed
tutorial: add missing line to make example build.
1 parent 4f1ebef commit 8224816

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/tutorial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2189,6 +2189,7 @@ printable, and that we wanted the implementation of `print` for those
21892189
types to be exactly as it is for `int`, above:
21902190
21912191
~~~~
2192+
# trait Printable { fn print(&self); }
21922193
impl Printable for f32 {
21932194
fn print(&self) { println!("{:?}", *self) }
21942195
}

0 commit comments

Comments
 (0)