🎨 simplified with .back()

This commit is contained in:
EntireTwix 2021-07-14 00:21:49 -07:00
parent 15ef40b143
commit 23da8c686f

View file

@ -38,7 +38,7 @@ std::string Log::GetLogs() noexcept
log_snapshot += std::to_string(data[i].time);
log_snapshot += "},";
}
log_snapshot[log_snapshot.size() - 1] = ']';
log_snapshot.back() = ']';
log_flag.SetChangesOff();
}
return log_snapshot;