Skip to content

Commit b329e1c

Browse files
committed
doc: Fix as description in tutorial
1 parent 9e4fb32 commit b329e1c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/tutorial.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -471,11 +471,11 @@ The comparison operators are the traditional `==`, `!=`, `<`, `>`,
471471
`<=`, and `>=`. Short-circuiting (lazy) boolean operators are written
472472
`&&` (and) and `||` (or).
473473

474-
For type casting, Rust uses the binary `as` operator, which has a
475-
precedence between the bitwise combination operators (`&`, `|`, `^`)
476-
and the comparison operators. It takes an expression on the left side,
477-
and a type on the right side, and will, if a meaningful conversion
478-
exists, convert the result of the expression to the given type.
474+
For type casting, Rust uses the binary `as` operator, which has high
475+
precedence, just lower than multiplication and division. It takes an
476+
expression on the left side, and a type on the right side, and will,
477+
if a meaningful conversion exists, convert the result of the
478+
expression to the given type.
479479

480480
~~~~
481481
let x: float = 4.0;

0 commit comments

Comments
 (0)