diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/assembly.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/assembly.rst b/docs/assembly.rst index 5288089f..377a6530 100644 --- a/docs/assembly.rst +++ b/docs/assembly.rst @@ -106,13 +106,13 @@ you really know what you are doing. // Skip over the length field. _data := add(_data, 0x20) - // Set up a bound. - let end := add(_data, len) - // Iterate until the bound is not met. - for {} lt(_data, end) {} { + for + { let end := add(_data, len) } + lt(_data, end) + { _data := add(_data, 0x20) } + { o_sum := add(o_sum, mload(_data)) - _data := add(_data, 0x20) } // NOTE: after this point it is not safe to use _data in Solidity code |