diff --git a/include/benchmark/benchmark.h b/include/benchmark/benchmark.h index 5a1eef89..c9c1c4ba 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 8ec30c88..31f2cde8 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 0202c64a..b8c8c94c 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)