aboutsummaryrefslogtreecommitdiffstats
path: root/docs/contracts.rst
diff options
context:
space:
mode:
authorJames Ray <james.ray0001@gmail.com>2017-07-28 13:24:19 +0800
committerGitHub <noreply@github.com>2017-07-28 13:24:19 +0800
commitc5b82f7d50d2f6040eea3dd71ebe4d759b9703e6 (patch)
treed27522c23b9f8d761301e5c809350d4ace69bbbc /docs/contracts.rst
parent53f747b7ded3610802582448257b25e87442bebb (diff)
downloaddexon-solidity-c5b82f7d50d2f6040eea3dd71ebe4d759b9703e6.tar.gz
dexon-solidity-c5b82f7d50d2f6040eea3dd71ebe4d759b9703e6.tar.zst
dexon-solidity-c5b82f7d50d2f6040eea3dd71ebe4d759b9703e6.zip
Constructor index
For referencing, especially when it hasn't been mentioned but not discussed in detail previously e.g. here and here.
Diffstat (limited to 'docs/contracts.rst')
-rw-r--r--docs/contracts.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index 4c3d4059..4e33c5f3 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -10,7 +10,7 @@ variables. Calling a function on a different contract (instance) will perform
an EVM function call and thus switch the context such that state variables are
inaccessible.
-.. index:: ! contract;creation
+.. index:: ! contract;creation, constructor
******************
Creating Contracts
@@ -20,7 +20,7 @@ Contracts can be created "from outside" or from Solidity contracts.
When a contract is created, its constructor (a function with the same
name as the contract) is executed once.
-A constructor is optional. Only one constructor is allowed, and this means
+A ``constructor`` is optional. Only one constructor is allowed, and this means
overloading is not supported.
From ``web3.js``, i.e. the JavaScript