Skip to content

Commit

Permalink
Discuss module syntax earlier in the tutorial
Browse files Browse the repository at this point in the history
as per #3578
  • Loading branch information
catamorphism committed Dec 11, 2012
1 parent 65a1287 commit eb21ced
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ while count < 10 {
}
~~~~
The name of the function that prints a line of text, `io::println`, is
qualified: it refers to the function named `println` that's defined in the
module `io`. In Rust, a double colon---`::`---separates parts of a
qualified name. For more details, see the section on [crates](#crates).
Although Rust can almost always infer the types of local variables, you
can specify a variable's type by following it with a colon, then the type
name.
Expand Down

0 comments on commit eb21ced

Please sign in to comment.