Merge pull request #12254 from ethereum/optimizerDocsForLoopInitRewriter

Remove incorrect outer block from for loop init rewriter documentation.
This commit is contained in:
chriseth 2021-11-08 11:55:05 +01:00 committed by GitHub
commit ea3c34a082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -429,12 +429,10 @@ is transformed to
.. code-block:: text .. code-block:: text
{
Init... Init...
for {} C { Post... } { for {} C { Post... } {
Body... Body...
} }
}
This eases the rest of the optimization process because we can ignore This eases the rest of the optimization process because we can ignore
the complicated scoping rules of the for loop initialisation block. the complicated scoping rules of the for loop initialisation block.