File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -426,9 +426,9 @@ func (b *B) loopSlowPath() bool {
426
426
// The compiler never optimizes away calls to functions within the body of a
427
427
// "for b.Loop() { ... }" loop. This prevents surprises that can otherwise occur
428
428
// if the compiler determines that the result of a benchmarked function is
429
- // unused. The loop must be written in exactly this form , and this only applies
430
- // to calls syntactically between the curly braces of the loop. Optimizations
431
- // are performed as usual in any functions called by the loop.
429
+ // unused. The loop condition must be written in exactly as "b.Loop()" , and this
430
+ // only applies to calls syntactically between the curly braces of the loop.
431
+ // Optimizations are performed as usual in any functions called by the loop.
432
432
//
433
433
// After Loop returns false, b.N contains the total number of iterations that
434
434
// ran, so the benchmark may use b.N to compute other average metrics.
You can’t perform that action at this time.
0 commit comments