mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #5196 from ethereum/chriseth-patch-2
Fix typo in yul example
This commit is contained in:
commit
51db4f5411
@ -44,7 +44,7 @@ and ``mod`` are available either natively or as functions and computes exponenti
|
||||
switch exponent
|
||||
case 0:u256 { result := 1:u256 }
|
||||
case 1:u256 { result := base }
|
||||
default:
|
||||
default
|
||||
{
|
||||
result := power(mul(base, base), div(exponent, 2:u256))
|
||||
switch mod(exponent, 2:u256)
|
||||
|
Loading…
Reference in New Issue
Block a user