From f7153ee58a5b5a6bc37a535ef8243b992fe8b1b7 Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Tue, 8 May 2018 13:08:22 +0200 Subject: Update documentation. --- docs/contracts.rst | 2 +- docs/grammar.txt | 2 +- docs/miscellaneous.rst | 1 - docs/types.rst | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) (limited to 'docs') 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 () {internal|external} [pure|constant|view|payable] [returns ()] + function () {internal|external} [pure|view|payable] [returns ()] In contrast to the parameter types, the return types cannot be empty - if the function type should not return anything, the whole ``returns ()`` -- cgit