diff --git a/AUTHORS b/AUTHORS index efb854ae..5a4b3553 100644 --- a/AUTHORS +++ b/AUTHORS @@ -27,3 +27,4 @@ Shuo Chen Yusuke Suzuki Dirac Research Zbigniew Skowron +Dominik Czarnota diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 077e55e9..ed55bcf2 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -43,3 +43,4 @@ Shuo Chen Yusuke Suzuki Tobias Ulvgård Zbigniew Skowron +Dominik Czarnota diff --git a/README.md b/README.md index 83d1b81e..8c656ead 100644 --- a/README.md +++ b/README.md @@ -104,12 +104,10 @@ The following example enumerates a dense range on one parameter, and a sparse range on the second. ```c++ -static benchmark::internal::Benchmark* CustomArguments( - benchmark::internal::Benchmark* b) { +static void CustomArguments(benchmark::internal::Benchmark* b) { for (int i = 0; i <= 10; ++i) for (int j = 32; j <= 1024*1024; j *= 8) - b = b->ArgPair(i, j); - return b; + b->ArgPair(i, j); } BENCHMARK(BM_SetInsert)->Apply(CustomArguments); ```