diff options
author | danlark <[email protected]> | 2022-02-10 16:46:10 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:10 +0300 |
commit | baa58daefa91fde4b4769facdbd2903763b9c6a8 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/deprecated/kmp/kmp_ut.cpp | |
parent | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/deprecated/kmp/kmp_ut.cpp')
-rw-r--r-- | library/cpp/deprecated/kmp/kmp_ut.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/deprecated/kmp/kmp_ut.cpp b/library/cpp/deprecated/kmp/kmp_ut.cpp index f3bcf8f4a6d..c2eda83c57a 100644 --- a/library/cpp/deprecated/kmp/kmp_ut.cpp +++ b/library/cpp/deprecated/kmp/kmp_ut.cpp @@ -11,8 +11,8 @@ static TVector<int> FindAll(const TString& pattern, const TString& string) { const char* begin = string.begin(); const char* end = string.end(); while (kmp.SubStr(begin, end, pResult)) { - result.push_back(int(pResult - string.data())); - begin = pResult + pattern.size(); + result.push_back(int(pResult - string.data())); + begin = pResult + pattern.size(); } return result; } |