aboutsummaryrefslogtreecommitdiffstats
path: root/docs/introduction-to-smart-contracts.rst
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-05-08 19:08:22 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-05-09 21:06:47 +0800
commit1a014f83cc8670a7c15c0338a33df124e982703f (patch)
tree6cc86e8ca6cab831ed840ac21a33639cb7f86a45 /docs/introduction-to-smart-contracts.rst
parent2c3f57bec6eaa8d52a644f0b6abe7ab17b05a2ee (diff)
downloaddexon-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.rst2
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;
}
}