aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenton Liu <liu.denton+github@gmail.com>2016-08-12 04:53:07 +0800
committerDenton Liu <liu.denton+github@gmail.com>2016-08-24 23:43:55 +0800
commitc58e460ba2aad998568168dd954a29e858d27ff2 (patch)
tree26c7269e9eed609d7eb17ee4e970278c3570b48a
parent02a72871d2200dd415fbb8c7488235495ff012c2 (diff)
downloaddexon-solidity-c58e460ba2aad998568168dd954a29e858d27ff2.tar.gz
dexon-solidity-c58e460ba2aad998568168dd954a29e858d27ff2.tar.zst
dexon-solidity-c58e460ba2aad998568168dd954a29e858d27ff2.zip
Change example code formatting
-rw-r--r--docs/layout-of-source-files.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/layout-of-source-files.rst b/docs/layout-of-source-files.rst
index b3436576..6ef06961 100644
--- a/docs/layout-of-source-files.rst
+++ b/docs/layout-of-source-files.rst
@@ -171,9 +171,9 @@ for the two input parameters and two returned values.
* @return s The calculated surface.
* @return p The calculated perimeter.
*/
- function rectangle(uint w, uint h) returns (uint s, uint p){
- s = w*h;
- p = 2*(w+h);
+ function rectangle(uint w, uint h) returns (uint s, uint p) {
+ s = w * h;
+ p = 2 * (w + h);
}
}