diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-09-26 04:13:44 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-09-26 04:13:44 +0800 |
commit | f588b1dbb2bf3d3a4040fd3af358b5edfebc1801 (patch) | |
tree | b1b72dd518b64b22ca34381214c98f073c6d40a7 | |
parent | 608f36d77b0dc6d908d89fe3a1b8e1626df8391c (diff) | |
download | dexon-solidity-f588b1dbb2bf3d3a4040fd3af358b5edfebc1801.tar.gz dexon-solidity-f588b1dbb2bf3d3a4040fd3af358b5edfebc1801.tar.zst dexon-solidity-f588b1dbb2bf3d3a4040fd3af358b5edfebc1801.zip |
Fix the HelloWorld example in the readme
-rw-r--r-- | README.md | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -29,8 +29,10 @@ Instructions about how to build and install the Solidity compiler can be found i A "Hello World" program in Solidity is of even less use than in other languages, but still: ``` +pragma solidity ^0.4.16; + contract HelloWorld { - function f() pure returns (string memory) { + function helloWorld() external pure returns (string memory) { return "Hello, World!"; } } |