From: Changcheng Liu Date: Mon, 22 Jun 2020 01:33:05 +0000 (+0800) Subject: common: typo fix for readability X-Git-Tag: v16.1.0~1967^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bcbe4245020ca6f3bd2fb504dc943127958541d0;p=ceph.git common: typo fix for readability Signed-off-by: Changcheng Liu --- diff --git a/src/common/options.h b/src/common/options.h index ac23560d2671..f0ed014e3039 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 c39363c88c5f..76d2a85b74c8 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);