aboutsummaryrefslogtreecommitdiffstats
path: root/docs/control-structures.rst
diff options
context:
space:
mode:
authorErik Kundt <bitshift@posteo.org>2018-07-05 00:04:44 +0800
committerErik Kundt <bitshift@posteo.org>2018-07-17 23:44:51 +0800
commitb5ecfbe5bc2afdf8f42ec67715794aefad9dfe0f (patch)
treefc949d51bb2f84b08072ea75cae070343e875661 /docs/control-structures.rst
parent1d33f41c1ab96746b97b97f79732ec23759fb8f0 (diff)
downloaddexon-solidity-b5ecfbe5bc2afdf8f42ec67715794aefad9dfe0f.tar.gz
dexon-solidity-b5ecfbe5bc2afdf8f42ec67715794aefad9dfe0f.tar.zst
dexon-solidity-b5ecfbe5bc2afdf8f42ec67715794aefad9dfe0f.zip
Enforces visibility specifier and updates docs.
Diffstat (limited to 'docs/control-structures.rst')
-rw-r--r--docs/control-structures.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst
index ead236c4..9fd017db 100644
--- a/docs/control-structures.rst
+++ b/docs/control-structures.rst
@@ -465,10 +465,10 @@ The following example shows how an error string can be used together with revert
::
- pragma solidity ^0.4.22;
+ pragma solidity >0.4.24;
contract VendingMachine {
- function buy(uint amount) payable {
+ function buy(uint amount) public payable {
if (amount > msg.value / 2 ether)
revert("Not enough Ether provided.");
// Alternative way to do it: