Skip to content

Commit

Permalink
[docs] Use benchmark::IterationCount rather than int64_t in lambd…
Browse files Browse the repository at this point in the history
…a to complexity (#940)
  • Loading branch information
NAThompson authored Feb 18, 2020
1 parent 8982e1e commit 168604d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ that might be used to customize high-order term calculation.

```c++
BENCHMARK(BM_StringCompare)->RangeMultiplier(2)
->Range(1<<10, 1<<18)->Complexity([](int64_t n)->double{return n; });
->Range(1<<10, 1<<18)->Complexity([](benchmark::IterationCount n)->double{return n; });
```
<a name="templated-benchmarks" />
Expand Down

0 comments on commit 168604d

Please sign in to comment.