Skip to content

Commit aa88512

Browse files
authored
Clarify arithmetic overflow behavior in expressions.rst
1 parent 668b1a0 commit aa88512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coding-guidelines/expressions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Expressions
1818
:tags: security, performance, numerics
1919

2020
Eliminate `arithmetic overflow <https://rust-lang.github.io/fls/expressions.html#arithmetic-overflow>`_ of both signed and unsigned integer types.
21-
Arithmetic overflow panics in debug mode, but wrapsaround in release mode.
21+
Arithmetic overflow will panic in debug mode, but wraparound in release mode.
2222
Any wraparound behavior must be explicitly specified to ensure the same behavior in both debug and release modes.
2323

2424
This rule applies to the following primitive types:

0 commit comments

Comments
 (0)