about summary refs log tree commit diff
path: root/doc/tutorial.md
diff options
context:
space:
mode:
authorLindsey Kuper <lindsey@composition.al>2014-01-05 22:02:16 -0500
committerLindsey Kuper <lindsey@composition.al>2014-01-05 22:03:13 -0500
commit8224816a34f805d312e9c7cdd740940ddcef815a (patch)
tree5b32c5e7bab6f3ef67723ab3c689c08a92249b58 /doc/tutorial.md
parent4f1ebef96a499129d935a3488b3a207c16b8975a (diff)
downloadrust-8224816a34f805d312e9c7cdd740940ddcef815a.tar.gz
rust-8224816a34f805d312e9c7cdd740940ddcef815a.zip
tutorial: add missing line to make example build.
Diffstat (limited to 'doc/tutorial.md')
-rw-r--r--doc/tutorial.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md
index 65e7501a04c..b5eba8a113c 100644
--- a/doc/tutorial.md
+++ b/doc/tutorial.md
@@ -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) }
 }