We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aacd887 + 455773b commit 105a943Copy full SHA for 105a943
src/expressions/operator-expr.md
@@ -340,6 +340,7 @@ reference types and `mut` or `const` in pointer types.
340
#### Numeric cast
341
342
* Casting between two integers of the same size (e.g. i32 -> u32) is a no-op
343
+ (Rust uses 2's complement for negative values of fixed integers)
344
* Casting from a larger integer to a smaller integer (e.g. u32 -> u8) will
345
truncate
346
* Casting from a smaller integer to a larger integer (e.g. u8 -> u32) will
0 commit comments