Skip to content

Commit f26df46

Browse files
committed
tutorial: Re-remove core:: prefix from some examples
1 parent d38f784 commit f26df46

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/tutorial.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ we have a file `hello.rs` containing this program:
128128

129129
~~~~
130130
fn main() {
131-
core::io::println("hello?");
131+
io::println("hello?");
132132
}
133133
~~~~
134134

@@ -142,8 +142,8 @@ error. If you introduce an error into the program (for example, by changing
142142
an error message like this:
143143

144144
~~~~ {.notrust}
145-
hello.rs:2:4: 2:16 error: unresolved name: core::io::print_with_unicorns
146-
hello.rs:2 core::io::print_with_unicorns("hello?");
145+
hello.rs:2:4: 2:16 error: unresolved name: io::print_with_unicorns
146+
hello.rs:2 io::print_with_unicorns("hello?");
147147
^~~~~~~~~~~~~~~~~~~~~~~
148148
~~~~
149149

@@ -210,7 +210,7 @@ let hi = "hi";
210210
let mut count = 0;
211211
212212
while count < 10 {
213-
core::io::println(fmt!("count: %?", i));
213+
io::println(fmt!("count: %?", i));
214214
count += 1;
215215
}
216216
~~~~

0 commit comments

Comments
 (0)