Merge pull request #5091 from ethereum/readme-helloworld

Fix the HelloWorld example in the readme
This commit is contained in:
Alex Beregszaszi 2018-09-26 13:13:42 +01:00 committed by GitHub
commit d72498b3d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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