diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-05-08 19:08:22 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-05-09 21:06:47 +0800 |
commit | 1a014f83cc8670a7c15c0338a33df124e982703f (patch) | |
tree | 6cc86e8ca6cab831ed840ac21a33639cb7f86a45 /docs/introduction-to-smart-contracts.rst | |
parent | 2c3f57bec6eaa8d52a644f0b6abe7ab17b05a2ee (diff) | |
download | dexon-solidity-1a014f83cc8670a7c15c0338a33df124e982703f.tar.gz dexon-solidity-1a014f83cc8670a7c15c0338a33df124e982703f.tar.zst dexon-solidity-1a014f83cc8670a7c15c0338a33df124e982703f.zip |
Prefer view over constant in the documentation.
Diffstat (limited to 'docs/introduction-to-smart-contracts.rst')
-rw-r--r-- | docs/introduction-to-smart-contracts.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/introduction-to-smart-contracts.rst b/docs/introduction-to-smart-contracts.rst index 84b1fff8..d1789c44 100644 --- a/docs/introduction-to-smart-contracts.rst +++ b/docs/introduction-to-smart-contracts.rst @@ -25,7 +25,7 @@ Storage storedData = x; } - function get() public constant returns (uint) { + function get() public view returns (uint) { return storedData; } } |