diff options
author | chriseth <chris@ethereum.org> | 2018-06-29 00:08:45 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-06-29 06:23:52 +0800 |
commit | eeef82b2d77c6f956039c57b0598e684254ee6dd (patch) | |
tree | 82887915936dbf242d5574c1fe9d61f5ace312d9 /docs/style-guide.rst | |
parent | 4268062985e434b00f07e3f90772b94538933b9c (diff) | |
download | dexon-solidity-eeef82b2d77c6f956039c57b0598e684254ee6dd.tar.gz dexon-solidity-eeef82b2d77c6f956039c57b0598e684254ee6dd.tar.zst dexon-solidity-eeef82b2d77c6f956039c57b0598e684254ee6dd.zip |
Fallback function has to be external: backwards-compatible changes.
Diffstat (limited to 'docs/style-guide.rst')
-rw-r--r-- | docs/style-guide.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/style-guide.rst b/docs/style-guide.rst index 6b28f2ab..792110e1 100644 --- a/docs/style-guide.rst +++ b/docs/style-guide.rst @@ -278,7 +278,7 @@ Yes:: ... } - function() public { + function() external { ... } @@ -308,6 +308,10 @@ No:: // External functions // ... + function() external { + ... + } + // Private functions // ... @@ -318,10 +322,6 @@ No:: ... } - function() public { - ... - } - // Internal functions // ... } @@ -374,13 +374,13 @@ Don't include a whitespace in the fallback function: Yes:: - function() public { + function() external { ... } No:: - function () public { + function () external { ... } |