Fix typo in yul example

This commit is contained in:
chriseth 2018-10-10 20:54:21 +02:00 committed by GitHub
parent f33fc99558
commit 6e61d92495
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)