From 57b2bfa33bbc4f171a7fc2807de71583b1e2fd2a Mon Sep 17 00:00:00 2001 From: YuanYingdong <1975643103@qq.com> Date: Mon, 24 Jan 2022 17:51:02 +0800 Subject: [PATCH] Fix some errors in Custom Statistics demo code. (#1332) --- docs/user_guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user_guide.md b/docs/user_guide.md index 2ddc8bda..0fe5a4fc 100644 --- a/docs/user_guide.md +++ b/docs/user_guide.md @@ -1058,7 +1058,7 @@ void BM_spin_empty(benchmark::State& state) { BENCHMARK(BM_spin_empty) ->ComputeStatistics("ratio", [](const std::vector& v) -> double { return std::begin(v) / std::end(v); - }, benchmark::StatisticUnit::Percentage) + }, benchmark::StatisticUnit::kPercentage) ->Arg(512); ```