From 980ba42faf825a1e66fb4689fc1a7553e7b9ef87 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Fri, 19 May 2017 23:16:01 +0100 Subject: Remove from examples --- docs/julia.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/julia.rst') diff --git a/docs/julia.rst b/docs/julia.rst index f67b3384..f97fb4b0 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 - case 0:u256: { result := 1:u256 } - case 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) - case 1:u256: { result := mul(base, result) } + case 1:u256 { result := mul(base, result) } } } } -- cgit v1.2.3