mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
tutorial: Remove some trivia about operators
This commit is contained in:
parent
2f615dc965
commit
cbddd5ed34
@ -371,11 +371,6 @@ let y: uint = x as uint;
|
||||
assert y == 4u;
|
||||
~~~~
|
||||
|
||||
The main difference with C is that `++` and `--` are missing, and that
|
||||
the logical bitwise operators have higher precedence—in C, `x & 2 > 0`
|
||||
means `x & (2 > 0)`, but in Rust, it means `(x & 2) > 0`, which is
|
||||
more likely to be what a novice expects.
|
||||
|
||||
## Syntax extensions
|
||||
|
||||
*Syntax extensions* are special forms that are not built into the language,
|
||||
|
Loading…
Reference in New Issue
Block a user