From bcbe4245020ca6f3bd2fb504dc943127958541d0 Mon Sep 17 00:00:00 2001 From: Changcheng Liu Date: Mon, 22 Jun 2020 09:33:05 +0800 Subject: [PATCH] common: typo fix for readability Signed-off-by: Changcheng Liu --- src/common/options.h | 2 +- src/common/strtol.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/options.h b/src/common/options.h index ac23560d267..f0ed014e303 100644 --- a/src/common/options.h +++ b/src/common/options.h @@ -111,7 +111,7 @@ struct Option { } enum flag_t { - FLAG_RUNTIME = 0x1, ///< option can change changed at runtime + FLAG_RUNTIME = 0x1, ///< option can be changed at runtime FLAG_NO_MON_UPDATE = 0x2, ///< option cannot be changed via mon config FLAG_STARTUP = 0x4, ///< option can only take effect at startup FLAG_CLUSTER_CREATE = 0x8, ///< option only has effect at cluster creation diff --git a/src/common/strtol.cc b/src/common/strtol.cc index c39363c88c5..76d2a85b74c 100644 --- a/src/common/strtol.cc +++ b/src/common/strtol.cc @@ -144,7 +144,7 @@ T strict_iec_cast(std::string_view str, std::string *err) std::string_view n = str; size_t u = str.find_first_not_of("0123456789-+"); int m = 0; - // deal with unit prefix is there is one + // deal with unit prefix if there is one if (u != std::string_view::npos) { n = str.substr(0, u); unit = str.substr(u, str.length() - u); -- 2.47.3