We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08c66ef commit 535c8b3Copy full SHA for 535c8b3
src/util.hpp
@@ -50,7 +50,7 @@ enum class color
50
51
[[nodiscard]] inline std::string create_string(std::string_view sv, std::size_t drop_chars = 0)
52
{
53
- return std::string(sv.begin(), sv.size() - drop_chars);
+ return std::string(sv.substr(0, sv.size() - drop_chars));
54
}
55
[[nodiscard]] inline std::string create_string(std::string_view begin,
56
std::string_view end)
0 commit comments