Fix the HelloWorld example in the readme

This commit is contained in:
Alex Beregszaszi 2018-09-25 21:13:44 +01:00
parent 608f36d77b
commit f588b1dbb2

View File

@ -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!";
}
}