aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.