mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update example version.
This commit is contained in:
parent
e75e3fc2e3
commit
3c6f5eb025
@ -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:
|
A "Hello World" program in Solidity is of even less use than in other languages, but still:
|
||||||
|
|
||||||
```solidity
|
```solidity
|
||||||
pragma solidity >=0.6.0 <0.8.0;
|
// SPDX-License-Identifier: MIT
|
||||||
|
pragma solidity >=0.6.0 <0.9.0;
|
||||||
|
|
||||||
contract HelloWorld {
|
contract HelloWorld {
|
||||||
function helloWorld() external pure returns (string memory) {
|
function helloWorld() external pure returns (string memory) {
|
||||||
return "Hello, World!";
|
return "Hello, World!";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user