Browse Source

Fix codestyle
b1e6ccedf00376f8b81fcad6db2e34af1d5a12ca

pavook 8 months ago
parent
commit
a8a8726554
2 changed files with 5 additions and 1 deletions
  1. 4 0
      yt/yt/core/misc/statistics.cpp
  2. 1 1
      yt/yt/core/misc/statistics.h

+ 4 - 0
yt/yt/core/misc/statistics.cpp

@@ -91,11 +91,15 @@ bool TSummary::operator ==(const TSummary& other) const
 
 ////////////////////////////////////////////////////////////////////////////////
 
+namespace {
+
 bool IsAllowedComponentChar(char c) noexcept
 {
     return IsAsciiAlnum(c) || c == '_';
 }
 
+} // namespace
+
 std::optional<char> CheckStatisticPath(const NYPath::TYPath& path)
 {
     for (auto c : path) {

+ 1 - 1
yt/yt/core/misc/statistics.h

@@ -49,7 +49,7 @@ void Serialize(const TSummary& summary, NYson::IYsonConsumer* consumer);
 
 ////////////////////////////////////////////////////////////////////////////////
 
-//! Return the invalid character if the given path is invalid, otherwise return |nullopt|.
+//! Returns the invalid character if the given path is invalid, otherwise returns |nullopt|.
 std::optional<char> CheckStatisticPath(const NYPath::TYPath& path);
 
 ////////////////////////////////////////////////////////////////////////////////