Skip to content

Commit 731cadd

Browse files
rcseacordfelix91gr
andauthored
Update src/coding-guidelines/expressions.rst
Co-authored-by: Félix Fischer <felix91gr@users.noreply.github.com>
1 parent 752a9fc commit 731cadd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/coding-guidelines/expressions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Expressions
163163
:id: compl_ex_BhUHiRB4kc4b
164164
:status: draft
165165

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.
167167
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``).
168168
The ``Wrapping<T>`` type provides a consistent way to force wrapping behavior in all build modes,
169169
which is useful in specific scenarios like implementing cryptography or hash functions where wrapping arithmetic is the intended behavior.

0 commit comments

Comments
 (0)