aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-09-26 04:13:44 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-09-26 04:13:44 +0800
commitf588b1dbb2bf3d3a4040fd3af358b5edfebc1801 (patch)
treeb1b72dd518b64b22ca34381214c98f073c6d40a7
parent608f36d77b0dc6d908d89fe3a1b8e1626df8391c (diff)
downloaddexon-solidity-f588b1dbb2bf3d3a4040fd3af358b5edfebc1801.tar.gz
dexon-solidity-f588b1dbb2bf3d3a4040fd3af358b5edfebc1801.tar.zst
dexon-solidity-f588b1dbb2bf3d3a4040fd3af358b5edfebc1801.zip
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!";
}
}