aboutsummaryrefslogtreecommitdiffstats
path: root/docs/style-guide.rst
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-06-29 00:08:45 +0800
committerchriseth <chris@ethereum.org>2018-06-29 06:23:52 +0800
commiteeef82b2d77c6f956039c57b0598e684254ee6dd (patch)
tree82887915936dbf242d5574c1fe9d61f5ace312d9 /docs/style-guide.rst
parent4268062985e434b00f07e3f90772b94538933b9c (diff)
downloaddexon-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.rst14
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 {
...
}