aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/string.h
diff options
context:
space:
mode:
authorpaxakor <paxakor@yandex-team.ru>2022-02-10 16:47:32 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:32 +0300
commit7fdbed62e54b804e2c12b86a2c2bab12f61065df (patch)
tree180a6ae33c1213a60fb42829eccb42cc00fc6955 /util/generic/string.h
parent7199613d295246a07c2f7b331fbb3128936039dc (diff)
downloadydb-7fdbed62e54b804e2c12b86a2c2bab12f61065df.tar.gz
Restoring authorship annotation for <paxakor@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/string.h')
-rw-r--r--util/generic/string.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/generic/string.h b/util/generic/string.h
index 8cd8aa6917..d376ce256a 100644
--- a/util/generic/string.h
+++ b/util/generic/string.h
@@ -251,14 +251,14 @@ public:
}
inline const_reference operator[](size_t pos) const noexcept {
- Y_ASSERT(pos <= length());
+ Y_ASSERT(pos <= length());
return this->data()[pos];
- }
-
+ }
+
inline reference operator[](size_t pos) noexcept {
- Y_ASSERT(pos <= length());
-
+ Y_ASSERT(pos <= length());
+
#ifdef TSTRING_IS_STD_STRING
return Storage_[pos];
#else