From faebd70b9dbd36620670737899ae22448626a8f2 Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Thu, 16 Apr 2020 13:59:42 -0700 Subject: [PATCH] Fix some spelling. Signed-off-by: John Plevyak --- source/extensions/common/wasm/context.cc | 8 ++++---- test/extensions/wasm/test_data/stats_cpp.cc | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/extensions/common/wasm/context.cc b/source/extensions/common/wasm/context.cc index 75e071ff323b..28717fe08192 100644 --- a/source/extensions/common/wasm/context.cc +++ b/source/extensions/common/wasm/context.cc @@ -202,7 +202,7 @@ Http::RequestTrailerMapPtr buildRequestTrailerMapFromPairs(const Pairs& pairs) { // Note: because of the lack of a string_view interface for addCopy and // the lack of an interface to add an entry with an empty value and return // the entry, there is no efficient way to prevent either a double copy - // of the valueor a double lookup of the entry. + // of the value or a double lookup of the entry. map->addCopy(Http::LowerCaseString(std::string(p.first)), std::string(p.second)); } return map; @@ -214,7 +214,7 @@ Http::RequestHeaderMapPtr buildRequestHeaderMapFromPairs(const Pairs& pairs) { // Note: because of the lack of a string_view interface for addCopy and // the lack of an interface to add an entry with an empty value and return // the entry, there is no efficient way to prevent either a double copy - // of the valueor a double lookup of the entry. + // of the value or a double lookup of the entry. map->addCopy(Http::LowerCaseString(std::string(p.first)), std::string(p.second)); } return map; @@ -360,13 +360,13 @@ WasmResult serializeValue(Filters::Common::Expr::CelValue value, std::string* re return WasmResult::Ok; } case CelValue::Type::kDuration: { - // Warning: loss of precision to nano-seconds + // Warning: loss of precision to nanoseconds int64_t out = absl::ToInt64Nanoseconds(value.DurationOrDie()); result->assign(reinterpret_cast(&out), sizeof(int64_t)); return WasmResult::Ok; } case CelValue::Type::kTimestamp: { - // Warning: loss of precision to nano-seconds + // Warning: loss of precision to nanoseconds int64_t out = absl::ToUnixNanos(value.TimestampOrDie()); result->assign(reinterpret_cast(&out), sizeof(int64_t)); return WasmResult::Ok; diff --git a/test/extensions/wasm/test_data/stats_cpp.cc b/test/extensions/wasm/test_data/stats_cpp.cc index 5f5e919766cf..901131b2deb4 100644 --- a/test/extensions/wasm/test_data/stats_cpp.cc +++ b/test/extensions/wasm/test_data/stats_cpp.cc @@ -28,7 +28,7 @@ extern "C" PROXY_WASM_KEEPALIVE uint32_t proxy_on_vm_start(uint32_t, uint32_t) { logInfo(std::string("get counter = ") + std::to_string(value)); CHECK_RESULT(getMetric(g, &value)); logWarn(std::string("get gauge = ") + std::to_string(value)); - // Get on histograms is not suppoorted. + // Get on histograms is not supported. if (getMetric(h, &value) != WasmResult::Ok) { logError(std::string("get histogram = Unsupported")); }