You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/coding-guidelines/expressions.rst
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -164,7 +164,8 @@ Expressions
164
164
:status: draft
165
165
166
166
Wrapping behavior call also be achieved using the ``Wrapping<T>`` type as in this compliant solution.
167
-
``Wrapping<T>`` type is a ``struct`` found in the ``std::num`` module that explicitly enables two's complement wrapping arithmetic for the inner type ``T`` (which must be an integer or ``usize/isize``).
167
+
The ``Wrapping<T>`` type is a ``struct`` found in the ``std::num`` module that explicitly enables two's complement
168
+
wrapping arithmetic for the inner type ``T`` (which must be an integer or ``usize/isize``).
168
169
The ``Wrapping<T>`` type provides a consistent way to force wrapping behavior in all build modes,
169
170
which is useful in specific scenarios like implementing cryptography or hash functions where wrapping arithmetic is the intended behavior.
0 commit comments