aboutsummaryrefslogtreecommitdiffstats
path: root/docs/miscellaneous.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-17 03:51:47 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-24 20:46:18 +0800
commit93e6e83093ecd4a31035e7b6a62adabd3cd81c5a (patch)
treea7ce04c141565b633a2f47d64fe491d172ebfe7a /docs/miscellaneous.rst
parente9a9a07d94d35fd9b84b16b7bd4bf8ab0b396d22 (diff)
downloaddexon-solidity-93e6e83093ecd4a31035e7b6a62adabd3cd81c5a.tar.gz
dexon-solidity-93e6e83093ecd4a31035e7b6a62adabd3cd81c5a.tar.zst
dexon-solidity-93e6e83093ecd4a31035e7b6a62adabd3cd81c5a.zip
Document pure functions
Diffstat (limited to 'docs/miscellaneous.rst')
-rw-r--r--docs/miscellaneous.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/miscellaneous.rst b/docs/miscellaneous.rst
index 7889fff2..e78c4807 100644
--- a/docs/miscellaneous.rst
+++ b/docs/miscellaneous.rst
@@ -500,12 +500,13 @@ Function Visibility Specifiers
- ``internal``: only visible internally
-.. index:: modifiers, constant, anonymous, indexed
+.. index:: modifiers, pure, view, payable, constant, anonymous, indexed
Modifiers
=========
-- ``view`` for functions: Disallow modification of state - this is not enforced yet.
+- ``pure`` for functions: Disallows modification or access of state - this is not enforced yet.
+- ``view`` for functions: Disallows modification of state - this is not enforced yet.
- ``payable`` for functions: Allows them to receive Ether together with a call.
- ``constant`` for state variables: Disallows assignment (except initialisation), does not occupy storage slot.
- ``constant`` for functions: Same as ``view``.