Skip to content

Commit 192eae3

Browse files
authored
[Base] backport change from #1750 (#1759)
1 parent 92bbd3d commit 192eae3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/shambase/include/shambase/string.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ namespace shambase {
273273
inline std::string shorten_string(std::string str, u32 len) {
274274
if (len > str.size()) {
275275
throw make_except_with_loc<std::invalid_argument>(
276-
"the string is too short to be shorten"
276+
"the string is too short to be shortened"
277277
"\n args : "
278-
+ format("{} : {} \n {} : {}", "str", str, "len", len));
278+
+ shambase::format("{} : {} \n {} : {}", "str", str, "len", len));
279279
}
280280
return str.substr(0, str.size() - len);
281281
}

0 commit comments

Comments
 (0)