Skip to content

Commit

Permalink
update wording
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Apr 23, 2023
1 parent ac8fb5a commit 7b575a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Shifting is only available for 256-bit wide types. That is, ``x`` must be ``int2


.. note::
While at runtime shifts can be for any number of bits, to prevent common mistakes, the compiler is stricter at compile-time and will prevent out of bounds shifts. For instance, at runtime, ``1 << 257`` will evaluate to ``0``, while that expression at compile-time will raise an ``OverflowException``.
While at runtime shifts are unchecked (that is, they can be for any number of bits), to prevent common mistakes, the compiler is stricter at compile-time and will prevent out of bounds shifts. For instance, at runtime, ``1 << 257`` will evaluate to ``0``, while that expression at compile-time will raise an ``OverflowException``.


.. index:: ! uint, ! uintN, ! unsigned integer
Expand Down Expand Up @@ -219,7 +219,7 @@ Shifting is only available for 256-bit wide types. That is, ``x`` must be ``uint


.. note::
While at runtime shifts can be for any number of bits, to prevent common mistakes, the compiler is stricter at compile-time and will prevent out of bounds shifts. For instance, at runtime, ``1 << 257`` will evaluate to ``0``, while that expression at compile-time will raise an ``OverflowException``.
While at runtime shifts are unchecked (that is, they can be for any number of bits), to prevent common mistakes, the compiler is stricter at compile-time and will prevent out of bounds shifts. For instance, at runtime, ``1 << 257`` will evaluate to ``0``, while that expression at compile-time will raise an ``OverflowException``.



Expand Down

0 comments on commit 7b575a6

Please sign in to comment.