aboutsummaryrefslogtreecommitdiffstats
path: root/docs/style-guide.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/style-guide.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/style-guide.rst')
-rw-r--r--docs/style-guide.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/style-guide.rst b/docs/style-guide.rst
index 0c58f3eb..6b28f2ab 100644
--- a/docs/style-guide.rst
+++ b/docs/style-guide.rst
@@ -269,7 +269,7 @@ Functions should be grouped according to their visibility and ordered:
- internal
- private
-Within a grouping, place the ``constant`` functions last.
+Within a grouping, place the ``view`` and ``pure`` functions last.
Yes::
@@ -285,7 +285,10 @@ Yes::
// External functions
// ...
- // External functions that are constant
+ // External functions that are view
+ // ...
+
+ // External functions that are pure
// ...
// Public functions