aboutsummaryrefslogtreecommitdiffstats
path: root/docs/contracts.rst
diff options
context:
space:
mode:
authorChristian Parpart <christian@ethereum.org>2018-06-18 21:58:10 +0800
committerChristian Parpart <christian@ethereum.org>2018-07-03 16:53:09 +0800
commit133fbdbf1874da9bc6b5911430f34a30ccf8db1f (patch)
tree784288777ed6af5f7007a259bf92aa352caa173c /docs/contracts.rst
parent1486d215b9c7f94831784ded50342897b65477c9 (diff)
downloaddexon-solidity-133fbdbf1874da9bc6b5911430f34a30ccf8db1f.tar.gz
dexon-solidity-133fbdbf1874da9bc6b5911430f34a30ccf8db1f.tar.zst
dexon-solidity-133fbdbf1874da9bc6b5911430f34a30ccf8db1f.zip
documentation: adjustments to not use the "var" keyword
Diffstat (limited to 'docs/contracts.rst')
-rw-r--r--docs/contracts.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index 86cdb3c4..56d651ee 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -1328,9 +1328,9 @@ custom types without the overhead of external function calls:
using BigInt for BigInt.bigint;
function f() public pure {
- var x = BigInt.fromUint(7);
- var y = BigInt.fromUint(uint(-1));
- var z = x.add(y);
+ BigInt.bigint memory x = BigInt.fromUint(7);
+ BigInt.bigint memory y = BigInt.fromUint(uint(-1));
+ BigInt.bigint memory z = x.add(y);
}
}