aboutsummaryrefslogtreecommitdiffstats
path: root/docs/solidity-by-example.rst
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-06-02 05:40:38 +0800
committerchriseth <c@ethdev.com>2016-06-02 05:40:38 +0800
commited9cc5476e0745e8b5859f27e8215f5c26893964 (patch)
tree7df111cbaf45c9b69947bf0cbea7fb62b4bd3eb1 /docs/solidity-by-example.rst
parentf9c8a9b5cac602d93bcf7a1b0b5026dcda71dc01 (diff)
downloaddexon-solidity-ed9cc5476e0745e8b5859f27e8215f5c26893964.tar.gz
dexon-solidity-ed9cc5476e0745e8b5859f27e8215f5c26893964.tar.zst
dexon-solidity-ed9cc5476e0745e8b5859f27e8215f5c26893964.zip
style
Diffstat (limited to 'docs/solidity-by-example.rst')
-rw-r--r--docs/solidity-by-example.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst
index 5c1810c1..04042381 100644
--- a/docs/solidity-by-example.rst
+++ b/docs/solidity-by-example.rst
@@ -112,9 +112,11 @@ of votes.
// In this case, the delegation will not be executed,
// but in other situations, such loops might
// cause a contract to get "stuck" completely.
- while (voters[to].delegate != address(0) &&
- voters[to].delegate != msg.sender) {
- to = voters[to].delegate;
+ while (
+ voters[to].delegate != address(0) &&
+ voters[to].delegate != msg.sender
+ ) {
+ to = voters[to].delegate;
}
// We found a loop in the delegation, not allowed.