Merge pull request #5196 from ethereum/chriseth-patch-2

Fix typo in yul example
This commit is contained in:
chriseth 2018-10-11 12:03:07 +02:00 committed by GitHub
commit 51db4f5411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)