aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-09-26 20:13:42 +0800
committerGitHub <noreply@github.com>2018-09-26 20:13:42 +0800
commitd72498b3d2afe27a5b434a7ce4f9e097a8f53663 (patch)
tree9f9c37a7257c5691d5bc8e6974c72012305bfdda
parent7d4acae21260abc6e95b0a32dbaf3a3f369543f5 (diff)
parentf588b1dbb2bf3d3a4040fd3af358b5edfebc1801 (diff)
downloaddexon-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.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index dedd1ab7..7a448e8c 100644
--- a/README.md
+++ b/README.md
@@ -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!";
}
}