mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
Remove trailing whitespace
This commit is contained in:
parent
8d4268d190
commit
40608342cb
3 changed files with 5 additions and 5 deletions
|
@ -1249,7 +1249,7 @@ template StringSet tokenizeString(std::string_view s, const string & separators)
|
|||
template vector<string> tokenizeString(std::string_view s, const string & separators);
|
||||
|
||||
|
||||
string chomp(const string & s)
|
||||
string chomp(std::string_view s)
|
||||
{
|
||||
size_t i = s.find_last_not_of(" \n\r\t");
|
||||
return i == string::npos ? "" : string(s, 0, i + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue