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