diff options
author | chriseth <chris@ethereum.org> | 2016-11-15 18:43:46 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-11-16 21:37:19 +0800 |
commit | 2defe4dcefb6f0e17d7f87231233ff637dad55a8 (patch) | |
tree | 9fb22e4684d3a98b526744b1e9e71afb8aba342a /docs | |
parent | eeae91c2a2897c6fd155890d654485fc8cf4dfc6 (diff) | |
download | dexon-solidity-2defe4dcefb6f0e17d7f87231233ff637dad55a8.tar dexon-solidity-2defe4dcefb6f0e17d7f87231233ff637dad55a8.tar.gz dexon-solidity-2defe4dcefb6f0e17d7f87231233ff637dad55a8.tar.bz2 dexon-solidity-2defe4dcefb6f0e17d7f87231233ff637dad55a8.tar.lz dexon-solidity-2defe4dcefb6f0e17d7f87231233ff637dad55a8.tar.xz dexon-solidity-2defe4dcefb6f0e17d7f87231233ff637dad55a8.tar.zst dexon-solidity-2defe4dcefb6f0e17d7f87231233ff637dad55a8.zip |
Documentation: Style update
Diffstat (limited to 'docs')
-rw-r--r-- | docs/types.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/types.rst b/docs/types.rst index ae27ee31..b22ad7d4 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -274,10 +274,10 @@ check the value ranges at runtime and a failure causes an exception. Enums need Function Types -------------- -Function types can be used to assign functions to variables and passing them -to or return them from function calls. Such variables and parameters have -to have function types. These types come in two flavours: *internal* and *external* -functions. +Function types are the types of functions. Variables of function type +can be assigned from functions and function parameters of function type +can be used to pass functions to and return functions from function calls. +Function types come in two flavours - *internal* and *external* functions: Internal functions can only be used inside the current contract (more specifically, inside the current code unit, which also includes internal library functions @@ -289,7 +289,7 @@ contract internally. External functions consist of an address and a function signature and they can be passed via and returned from external function calls. -Function types are notated as follows: +Function types are notated as follows:: function (<parameter types>) {internal|external} [constant] [payable] [returns (<return types>)] |