From 1bcd8252ee22ea4f153de812e9bf83e3cfe4f8e0 Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Thu, 27 Feb 2014 14:16:31 +0100 Subject: Minor modifications to Axel's tutorial improvements (see also #12472). --- src/doc/tutorial.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/doc/tutorial.md') diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md index 1c33d17ec66..339e5552d7f 100644 --- a/src/doc/tutorial.md +++ b/src/doc/tutorial.md @@ -133,8 +133,10 @@ fn main() { println!("hello?"); } ~~~~ -> ***Note:*** *Macros* are explained in the [Syntax extensions -> (3.4)](#syntax-extensions) section. +> ***Note:*** An identifier followed by an exclamation point, like +> `println!`, is a macro invocation. Macros are explained +> [later](#syntax-extensions); for now just remember to include the +> exclamation point. If the Rust compiler was installed successfully, running `rustc hello.rs` will produce an executable called `hello` (or `hello.exe` on @@ -1347,8 +1349,8 @@ assert!(xs.eq(&ys)); assert!(!xs.ne(&ys)); // The Eq trait also allows us to use the shorthand infix operators. -assert!(xs == ys); -assert!(!(xs != ys)); +assert!(xs == ys); // `xs == ys` is short for `xs.eq(&ys)` +assert!(!(xs != ys)); // `xs != ys` is short for `xs.ne(&ys)` ~~~ # More on boxes -- cgit 1.4.1-3-g733a5