diff options
author | Erik Kundt <bitshift@posteo.org> | 2018-07-02 22:25:54 +0800 |
---|---|---|
committer | Erik Kundt <bitshift@posteo.org> | 2018-07-02 22:25:54 +0800 |
commit | e16e37f5074ce359b852f3b2e4b80095d22952dc (patch) | |
tree | a076864dbe06cfbe47121b2e8a0a3c335b28a338 /docs/control-structures.rst | |
parent | da60fdab37ddd6126e5ba605e7041dc6f26ab5ee (diff) | |
download | dexon-solidity-e16e37f5074ce359b852f3b2e4b80095d22952dc.tar.gz dexon-solidity-e16e37f5074ce359b852f3b2e4b80095d22952dc.tar.zst dexon-solidity-e16e37f5074ce359b852f3b2e4b80095d22952dc.zip |
Updates docs to new constructor syntax.
Diffstat (limited to 'docs/control-structures.rst')
-rw-r--r-- | docs/control-structures.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst index cc1f7ca5..8e5d2af1 100644 --- a/docs/control-structures.rst +++ b/docs/control-structures.rst @@ -225,11 +225,11 @@ creation-dependencies are not possible. :: - pragma solidity ^0.4.0; + pragma solidity ^0.4.24; contract D { uint x; - function D(uint a) public payable { + constructor(uint a) public payable { x = a; } } |