aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDenton Liu <liu.denton+github@gmail.com>2016-08-19 01:03:41 +0800
committerDenton Liu <liu.denton+github@gmail.com>2016-08-24 23:43:56 +0800
commitef117c29021c31bc7f9c3e0b9797b72538591199 (patch)
treeadb2f465ec758a74185480340159ce2048725eff /docs
parent2716d01f2cc8cb06f73d170c94d1c4c8fef172a9 (diff)
downloaddexon-solidity-ef117c29021c31bc7f9c3e0b9797b72538591199.tar.gz
dexon-solidity-ef117c29021c31bc7f9c3e0b9797b72538591199.tar.zst
dexon-solidity-ef117c29021c31bc7f9c3e0b9797b72538591199.zip
Fix creating contracts section
Diffstat (limited to 'docs')
-rw-r--r--docs/control-structures.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst
index 43a1a31e..b3940f72 100644
--- a/docs/control-structures.rst
+++ b/docs/control-structures.rst
@@ -127,11 +127,11 @@ Those names will still be present on the stack, but they are inaccessible.
.. _creating-contracts:
-Creating Contracts via new
-==========================
+Creating Contracts via ``new``
+==============================
A contract can create a new contract using the ``new`` keyword. The full
-code of the contract to be created has to be known and thus recursive
+code of the contract being created has to be known and, thus, recursive
creation-dependencies are now possible.
::
@@ -142,6 +142,8 @@ creation-dependencies are now possible.
x = a;
}
}
+
+
contract C {
D d = new D(4); // will be executed as part of C's constructor