about summary refs log tree commit diff
path: root/doc/tutorial.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tutorial.md')
-rw-r--r--doc/tutorial.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md
index 051d9e22893..6e89f661cf3 100644
--- a/doc/tutorial.md
+++ b/doc/tutorial.md
@@ -1820,6 +1820,7 @@ explicitly import it, you must refer to it by its long name,
 `farm::chicken`.
 
 ~~~~
+#[legacy_exports]
 mod farm {
     fn chicken() -> ~str { ~"cluck cluck" }
     fn cow() -> ~str { ~"mooo" }
@@ -2004,6 +2005,7 @@ Rust uses three different namespaces: one for modules, one for types,
 and one for values. This means that this code is valid:
 
 ~~~~
+#[legacy_exports]
 mod buffalo {
     type buffalo = int;
     fn buffalo<buffalo>(+buffalo: buffalo) -> buffalo { buffalo }