aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-03-07 00:37:47 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-04-04 00:21:55 +0800
commitf855c78a0839d6f569cb88eda290439b69a680e3 (patch)
treeb93980a207616f630bb7996dcadfffe47e54d7b6 /docs
parentc98464db0607f62aa791aa1f7559a76623e254e7 (diff)
downloaddexon-solidity-f855c78a0839d6f569cb88eda290439b69a680e3.tar.gz
dexon-solidity-f855c78a0839d6f569cb88eda290439b69a680e3.tar.zst
dexon-solidity-f855c78a0839d6f569cb88eda290439b69a680e3.zip
Update version pragma and use new constructor syntax in std/ contracts.
Diffstat (limited to 'docs')
-rw-r--r--docs/contracts.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index c4eda8dc..e3f5bbac 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -40,7 +40,7 @@ This means that cyclic creation dependencies are impossible.
::
- pragma solidity ^0.4.20; // should actually be 0.4.21
+ pragma solidity >0.4.21;
contract OwnedToken {
// TokenCreator is a contract type that is defined below.
@@ -981,7 +981,7 @@ Constructor functions can be either ``public`` or ``internal``.
::
- pragma solidity ^0.4.20; // should actually be 0.4.21
+ pragma solidity >0.4.21;
contract A {
uint public a;
@@ -998,7 +998,7 @@ Constructor functions can be either ``public`` or ``internal``.
A constructor set as ``internal`` causes the contract to be marked as :ref:`abstract <abstract-contract>`.
.. note ::
- Prior to version 0.4.21, constructors were defined as functions with the same name as the contract. This syntax is now deprecated.
+ Prior to version 0.4.22, constructors were defined as functions with the same name as the contract. This syntax is now deprecated.
::