]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
common: typo fix for readability
authorChangcheng Liu <changcheng.liu@aliyun.com>
Mon, 22 Jun 2020 01:33:05 +0000 (09:33 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Mon, 22 Jun 2020 01:33:05 +0000 (09:33 +0800)
Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/common/options.h
src/common/strtol.cc

index ac23560d2671e1cf678bb4bfb2f62afd66b42427..f0ed014e3039412656902d451edd893c9e8186c1 100644 (file)
@@ -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
index c39363c88c5f7652cc70108d0b8d7ab4d1246711..76d2a85b74c83671635beac192159e5151aaf64c 100644 (file)
@@ -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);