File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -133,8 +133,10 @@ fn main() {
133
133
println!("hello?");
134
134
}
135
135
~~~~
136
- > *** Note:*** * Macros* are explained in the [ Syntax extensions
137
- > (3.4)] ( #syntax-extensions ) section.
136
+ > *** Note:*** An identifier followed by an exclamation point, like
137
+ > ` println! ` , is a macro invocation. Macros are explained
138
+ > [ later] ( #syntax-extensions ) ; for now just remember to include the
139
+ > exclamation point.
138
140
139
141
If the Rust compiler was installed successfully, running `rustc
140
142
hello.rs` will produce an executable called ` hello` (or ` hello.exe` on
@@ -1347,8 +1349,8 @@ assert!(xs.eq(&ys));
1347
1349
assert!(!xs.ne(&ys));
1348
1350
1349
1351
// The Eq trait also allows us to use the shorthand infix operators.
1350
- assert!(xs == ys);
1351
- assert!(!(xs != ys));
1352
+ assert!(xs == ys); // `xs == ys` is short for `xs.eq(&ys)`
1353
+ assert!(!(xs != ys)); // `xs != ys` is short for `xs.ne(&ys)`
1352
1354
~~~
1353
1355
1354
1356
# More on boxes
You can’t perform that action at this time.
0 commit comments