diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-09-26 20:13:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-26 20:13:42 +0800 |
commit | d72498b3d2afe27a5b434a7ce4f9e097a8f53663 (patch) | |
tree | 9f9c37a7257c5691d5bc8e6974c72012305bfdda | |
parent | 7d4acae21260abc6e95b0a32dbaf3a3f369543f5 (diff) | |
parent | f588b1dbb2bf3d3a4040fd3af358b5edfebc1801 (diff) | |
download | dexon-solidity-d72498b3d2afe27a5b434a7ce4f9e097a8f53663.tar.gz dexon-solidity-d72498b3d2afe27a5b434a7ce4f9e097a8f53663.tar.zst dexon-solidity-d72498b3d2afe27a5b434a7ce4f9e097a8f53663.zip |
Merge pull request #5091 from ethereum/readme-helloworld
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!"; } } |