aboutsummaryrefslogtreecommitdiffstats
path: root/docs/contracts.rst
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-03-03 00:58:27 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-03-05 18:18:04 +0800
commitc633c0eacba12e940b12c6ff58b5c6c55dc0122c (patch)
tree9b54278c28df1c2fb97916c9ec7e263faea1b97d /docs/contracts.rst
parent5982869e94965e48ec680fd32e6f80b8211fc34c (diff)
downloaddexon-solidity-c633c0eacba12e940b12c6ff58b5c6c55dc0122c.tar.gz
dexon-solidity-c633c0eacba12e940b12c6ff58b5c6c55dc0122c.tar.zst
dexon-solidity-c633c0eacba12e940b12c6ff58b5c6c55dc0122c.zip
Move msg.gas to global function gasleft(). Closes #2971.
Diffstat (limited to 'docs/contracts.rst')
-rw-r--r--docs/contracts.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index 967eb2c8..5754b734 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -402,7 +402,7 @@ State variables can be declared as ``constant``. In this case, they have to be
assigned from an expression which is a constant at compile time. Any expression
that accesses storage, blockchain data (e.g. ``now``, ``this.balance`` or
``block.number``) or
-execution data (``msg.gas``) or make calls to external contracts are disallowed. Expressions
+execution data (``msg.value``) or make calls to external contracts are disallowed. Expressions
that might have a side-effect on memory allocation are allowed, but those that
might have a side-effect on other memory objects are not. The built-in functions
``keccak256``, ``sha256``, ``ripemd160``, ``ecrecover``, ``addmod`` and ``mulmod``