Skip to content

Commit 6f109fa

Browse files
ochafikggerganov
andauthored
Update common/common.cpp
Co-authored-by: Georgi Gerganov <[email protected]>
1 parent 869e1a9 commit 6f109fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ bool string_ends_with(const std::string & str, const std::string & suffix) {
447447
return str.size() >= suffix.size() && str.compare(str.size()-suffix.size(), suffix.size(), suffix) == 0;
448448
}
449449

450-
size_t string_find_partial_stop(const std::string &str, const std::string &stop) {
450+
size_t string_find_partial_stop(const std::string & str, const std::string & stop) {
451451
if (!str.empty() && !stop.empty()) {
452452
const char text_last_char = str.back();
453453
for (int64_t char_index = stop.size() - 1; char_index >= 0; char_index--) {

0 commit comments

Comments
 (0)