aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-04-19 06:23:37 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-11-22 11:07:54 +0800
commit0339cc1bb1dd84455237ffa4b3235ad4deb44f0f (patch)
treedb018a8594b04c50d7a26fed6121bcf2cbc199f7 /docs
parent3d99e8279575c686bd48801c3c3bad2fde8a30c6 (diff)
downloaddexon-solidity-0339cc1bb1dd84455237ffa4b3235ad4deb44f0f.tar
dexon-solidity-0339cc1bb1dd84455237ffa4b3235ad4deb44f0f.tar.gz
dexon-solidity-0339cc1bb1dd84455237ffa4b3235ad4deb44f0f.tar.bz2
dexon-solidity-0339cc1bb1dd84455237ffa4b3235ad4deb44f0f.tar.lz
dexon-solidity-0339cc1bb1dd84455237ffa4b3235ad4deb44f0f.tar.xz
dexon-solidity-0339cc1bb1dd84455237ffa4b3235ad4deb44f0f.tar.zst
dexon-solidity-0339cc1bb1dd84455237ffa4b3235ad4deb44f0f.zip
Case is missing from switch statements
Diffstat (limited to 'docs')
-rw-r--r--docs/julia.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/julia.rst b/docs/julia.rst
index 42c8047e..58c3c557 100644
--- a/docs/julia.rst
+++ b/docs/julia.rst
@@ -33,13 +33,13 @@ and ``mod`` are available either natively or as functions and computes exponenti
function power(base:u256, exponent:u256) -> (result:u256)
{
switch exponent
- 0:u256: { result := 1:u256 }
- 1:u256: { result := base }
+ case 0:u256: { result := 1:u256 }
+ case 1:u256: { result := base }
default:
{
result := power(mul(base, base), div(exponent, 2:u256))
switch mod(exponent, 2:u256)
- 1:u256: { result := mul(base, result) }
+ case 1:u256: { result := mul(base, result) }
}
}
}