aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-05-08 19:08:22 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-07-03 21:31:34 +0800
commitf7153ee58a5b5a6bc37a535ef8243b992fe8b1b7 (patch)
tree4e5502fade3f8f933a996b382c57225724b8995c /docs
parent3984beef7d389776c23053e3136ae99296c12e8e (diff)
downloaddexon-solidity-f7153ee58a5b5a6bc37a535ef8243b992fe8b1b7.tar
dexon-solidity-f7153ee58a5b5a6bc37a535ef8243b992fe8b1b7.tar.gz
dexon-solidity-f7153ee58a5b5a6bc37a535ef8243b992fe8b1b7.tar.bz2
dexon-solidity-f7153ee58a5b5a6bc37a535ef8243b992fe8b1b7.tar.lz
dexon-solidity-f7153ee58a5b5a6bc37a535ef8243b992fe8b1b7.tar.xz
dexon-solidity-f7153ee58a5b5a6bc37a535ef8243b992fe8b1b7.tar.zst
dexon-solidity-f7153ee58a5b5a6bc37a535ef8243b992fe8b1b7.zip
Update documentation.
Diffstat (limited to 'docs')
-rw-r--r--docs/contracts.rst2
-rw-r--r--docs/grammar.txt2
-rw-r--r--docs/miscellaneous.rst1
-rw-r--r--docs/types.rst2
4 files changed, 3 insertions, 4 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index 56d651ee..41240a9c 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -473,7 +473,7 @@ The following statements are considered modifying the state:
}
.. note::
- ``constant`` on functions is an alias to ``view``, but this is deprecated and will be dropped in version 0.5.0.
+ ``constant`` on functions used to be an alias to ``view``, but this was dropped in version 0.5.0.
.. note::
Getter methods are marked ``view``.
diff --git a/docs/grammar.txt b/docs/grammar.txt
index 6bdbd016..7b29fc62 100644
--- a/docs/grammar.txt
+++ b/docs/grammar.txt
@@ -58,7 +58,7 @@ ArrayTypeName = TypeName '[' Expression? ']'
FunctionTypeName = 'function' FunctionTypeParameterList ( 'internal' | 'external' | StateMutability )*
( 'returns' FunctionTypeParameterList )?
StorageLocation = 'memory' | 'storage' | 'calldata'
-StateMutability = 'pure' | 'constant' | 'view' | 'payable'
+StateMutability = 'pure' | 'view' | 'payable'
Block = '{' Statement* '}'
Statement = IfStatement | WhileStatement | ForStatement | Block | InlineAssemblyStatement |
diff --git a/docs/miscellaneous.rst b/docs/miscellaneous.rst
index d324b77a..c19c8c59 100644
--- a/docs/miscellaneous.rst
+++ b/docs/miscellaneous.rst
@@ -401,7 +401,6 @@ Modifiers
- ``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``.
- ``anonymous`` for events: Does not store event signature as topic.
- ``indexed`` for event parameters: Stores the parameter as topic.
diff --git a/docs/types.rst b/docs/types.rst
index e1f8e6dd..217a2273 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -376,7 +376,7 @@ be passed via and returned from external function calls.
Function types are notated as follows::
- function (<parameter types>) {internal|external} [pure|constant|view|payable] [returns (<return types>)]
+ function (<parameter types>) {internal|external} [pure|view|payable] [returns (<return types>)]
In contrast to the parameter types, the return types cannot be empty - if the
function type should not return anything, the whole ``returns (<return types>)``