File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ fn main() {
225225
226226Though it isn't apparent in all code, there is a fundamental
227227difference 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
229229in Rust. This allows for useless things like this (which passes
230230nil—the void type—to a function):
231231
@@ -458,7 +458,7 @@ let s = "a\
458458
459459Rust's set of operators contains very few surprises. The main
460460difference 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 `
462462comes out as ` x & (2 > 0) ` , in Rust, it means ` (x & 2) > 0 ` , which is
463463more likely to be what you expect (unless you are a C veteran).
464464
You can’t perform that action at this time.
0 commit comments