mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #12079 from git-sgmoore/patch-1
Update value-types.rst - fix typo
This commit is contained in:
commit
385f64e82f
@ -66,7 +66,7 @@ Shifts
|
||||
^^^^^^
|
||||
|
||||
The result of a shift operation has the type of the left operand, truncating the result to match the type.
|
||||
The right operand must be of unsigned type, trying to shift by an signed type will produce a compilation error.
|
||||
The right operand must be of unsigned type, trying to shift by a signed type will produce a compilation error.
|
||||
|
||||
Shifts can be "simulated" using multiplication by powers of two in the following way. Note that the truncation
|
||||
to the type of the left operand is always performed at the end, but not mentioned explicitly.
|
||||
|
Loading…
Reference in New Issue
Block a user