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
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,7 +163,7 @@ Expressions
163
163
:id: compl_ex_BhUHiRB4kc4b
164
164
:status: draft
165
165
166
-
Wrapping behavior call also be implemented using the ``Wrapping<T>`` type as in this compliant solution.
166
+
Wrapping behavior call also be achieved using the ``Wrapping<T>`` type as in this compliant solution.
167
167
The ``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``).
168
168
The ``Wrapping<T>`` type provides a consistent way to force wrapping behavior in all build modes,
169
169
which is useful in specific scenarios like implementing cryptography or hash functions where wrapping arithmetic is the intended behavior.
0 commit comments