Skip to content

Commit

Permalink
Bug fix: missing 'not'
Browse files Browse the repository at this point in the history
  • Loading branch information
xhliu committed Jul 2, 2019
1 parent e714c44 commit dce69ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/loop.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ is converted to
Because `loop unrolling <https://en.wikipedia.org/wiki/Loop_unrolling>`_ is done at compile time, the compiler must know ``maxLoopCount``, which has to be a constant number.


If ``maxLoopCount`` is set too small, the contract may work correctly. If ``maxLoopCount`` is set too large, the resulting script is bloated unnecessarily and costs more to execute.
If ``maxLoopCount`` is set too small, the contract may not work correctly. If ``maxLoopCount`` is set too large, the resulting script is bloated unnecessarily and costs more to execute.
There are a number of ways to choose the right ``maxLoopCount`` judiciously. One way is to simulate the contract off chain and find the number of loops.

Access loop index
Expand Down

0 comments on commit dce69ba

Please sign in to comment.