Skip to content

Commit a4954eb

Browse files
committed
Couple typo fixes in tutorial.
1 parent 4fc6e18 commit a4954eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ fn main() {
225225

226226
Though it isn't apparent in all code, there is a fundamental
227227
difference between Rust's syntax and the predecessors in this family
228-
of languages. A lot of thing that are statements in C are expressions
228+
of languages. A lot of things that are statements in C are expressions
229229
in Rust. This allows for useless things like this (which passes
230230
nil—the void type—to a function):
231231

@@ -458,7 +458,7 @@ let s = "a\
458458

459459
Rust's set of operators contains very few surprises. The main
460460
difference with C is that `++` and `--` are missing, and that the
461-
logical binary operators have higher precedence—in C, `x & 2 > 0`
461+
logical bitwise operators have higher precedence—in C, `x & 2 > 0`
462462
comes out as `x & (2 > 0)`, in Rust, it means `(x & 2) > 0`, which is
463463
more likely to be what you expect (unless you are a C veteran).
464464

0 commit comments

Comments
 (0)