From b7ad5e04972d3bd64ca6a79c931c88848b33e588 Mon Sep 17 00:00:00 2001 From: Matthias Liedtke Date: Mon, 12 Feb 2024 17:56:58 +0100 Subject: [PATCH] fix typo in GetBenchmarkVersion() (#1755) --- include/benchmark/benchmark.h | 2 +- src/benchmark.cc | 2 +- src/json_reporter.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/benchmark/benchmark.h b/include/benchmark/benchmark.h index 5a1eef89e4..c9c1c4bab1 100644 --- a/include/benchmark/benchmark.h +++ b/include/benchmark/benchmark.h @@ -303,7 +303,7 @@ class BenchmarkReporter; const char kDefaultMinTimeStr[] = "0.5s"; // Returns the version of the library. -BENCHMARK_EXPORT std::string GetBenchmarkVersiom(); +BENCHMARK_EXPORT std::string GetBenchmarkVersion(); BENCHMARK_EXPORT void PrintDefaultHelp(); diff --git a/src/benchmark.cc b/src/benchmark.cc index 8ec30c88c0..31f2cde8ff 100644 --- a/src/benchmark.cc +++ b/src/benchmark.cc @@ -748,7 +748,7 @@ int InitializeStreams() { } // end namespace internal -std::string GetBenchmarkVersiom() { return {BENCHMARK_VERSION}; } +std::string GetBenchmarkVersion() { return {BENCHMARK_VERSION}; } void PrintDefaultHelp() { fprintf(stdout, diff --git a/src/json_reporter.cc b/src/json_reporter.cc index 0202c64a0e..b8c8c94c08 100644 --- a/src/json_reporter.cc +++ b/src/json_reporter.cc @@ -167,7 +167,7 @@ bool JSONReporter::ReportContext(const Context& context) { } out << "],\n"; - out << indent << FormatKV("library_version", GetBenchmarkVersiom()); + out << indent << FormatKV("library_version", GetBenchmarkVersion()); out << ",\n"; #if defined(NDEBUG)