aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/util.h
diff options
context:
space:
mode:
authorlimburg <limburg@yandex-team.ru>2022-02-10 16:47:37 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:37 +0300
commitf8250dcf35b79fc52c9e6c6fa3931df9fd4ce472 (patch)
tree09491b73fe8fbb0990530ad9e7d4a6d96aa8dff4 /util/string/util.h
parent0d7c4ef9025d79c9bba6f62a92b490ee72e80ed0 (diff)
downloadydb-f8250dcf35b79fc52c9e6c6fa3931df9fd4ce472.tar.gz
Restoring authorship annotation for <limburg@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/string/util.h')
-rw-r--r--util/string/util.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/string/util.h b/util/string/util.h
index 0d77a5042b8..fb65f892736 100644
--- a/util/string/util.h
+++ b/util/string/util.h
@@ -15,11 +15,11 @@
int a2i(const TString& s);
/// Removes the last character if it is equal to c.
-template <class T>
-inline void RemoveIfLast(T& s, int c) {
- const size_t length = s.length();
- if (length && s[length - 1] == c)
- s.remove(length - 1);
+template <class T>
+inline void RemoveIfLast(T& s, int c) {
+ const size_t length = s.length();
+ if (length && s[length - 1] == c)
+ s.remove(length - 1);
}
/// Adds lastCh symbol to the the of the string if it is not already there.