restore back before introducing main.cpp

This commit is contained in:
2021-03-12 20:14:13 +01:00
parent 55d39ef321
commit de7c39d52f
6 changed files with 1352 additions and 16 deletions

View File

@@ -67,7 +67,7 @@ std::string mini_sprintf(const std::string &format_str, const std::vector<MlValu
for (si = format_str.begin(); si != format_str.end(); ++si) {
c = *si;
// formating directives
// formatting directives
if (c == '%') {
if (++si >= format_str.end()) {
return output_str; // end of string, invalid % on last pos