Merge pull request #10989 from ethereum/exampleVersion

Update example version.
This commit is contained in:
chriseth 2021-02-23 13:25:40 +01:00 committed by GitHub
commit ebba9a86ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,12 +37,13 @@ found in the [Solidity documentation](https://docs.soliditylang.org/en/latest/in
A "Hello World" program in Solidity is of even less use than in other languages, but still:
```solidity
pragma solidity >=0.6.0 <0.8.0;
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.9.0;
contract HelloWorld {
function helloWorld() external pure returns (string memory) {
return "Hello, World!";
}
function helloWorld() external pure returns (string memory) {
return "Hello, World!";
}
}
```