diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-17 03:53:46 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-24 20:46:18 +0800 |
commit | 23c791e4df32315b9f16449abaac0835be7f7fdc (patch) | |
tree | 6d6f3998f63b14dd52542b6a443d5941afded253 | |
parent | 504e6285f3b9f688f4456607980fabc60d5432c2 (diff) | |
download | dexon-solidity-23c791e4df32315b9f16449abaac0835be7f7fdc.tar.gz dexon-solidity-23c791e4df32315b9f16449abaac0835be7f7fdc.tar.zst dexon-solidity-23c791e4df32315b9f16449abaac0835be7f7fdc.zip |
Add pure to grammar
-rw-r--r-- | docs/grammar.txt | 2 | ||||
-rw-r--r-- | docs/types.rst | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/grammar.txt b/docs/grammar.txt index 36ba36f0..041728c5 100644 --- a/docs/grammar.txt +++ b/docs/grammar.txt @@ -53,7 +53,7 @@ ArrayTypeName = TypeName '[' Expression? ']' FunctionTypeName = 'function' TypeNameList ( 'internal' | 'external' | StateMutability )* ( 'returns' TypeNameList )? StorageLocation = 'memory' | 'storage' -StateMutability = 'constant' | 'view' | 'payable' +StateMutability = 'pure' | 'constant' | 'view' | 'payable' Block = '{' Statement* '}' Statement = IfStatement | WhileStatement | ForStatement | Block | InlineAssemblyStatement | diff --git a/docs/types.rst b/docs/types.rst index 9c1c73c6..fb88b006 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -337,7 +337,7 @@ be passed via and returned from external function calls. Function types are notated as follows:: - function (<parameter types>) {internal|external} [constant|view|payable] [returns (<return types>)] + function (<parameter types>) {internal|external} [pure|constant|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>)`` |