diff options
author | Vincent Ambo <tazjin@google.com> | 2020-05-24T00·36+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-05-24T01·13+0100 |
commit | 06d7b4aebd9e4a1a87f77fe59a8c08392318be5d (patch) | |
tree | 264bfbef18b5b93596d6eb805fc9e5647ddadb4b /third_party/nix/src/nix/repl.cc | |
parent | 10481d25861f1c25b53cfbd8119199ef2e918f9f (diff) |
refactor(3p/nix/libutil): Replace chomp() with absl::strings r/835
Diffstat (limited to '')
-rw-r--r-- | third_party/nix/src/nix/repl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/nix/src/nix/repl.cc b/third_party/nix/src/nix/repl.cc index 87caf9dd3fc2..5db9468fdc0a 100644 --- a/third_party/nix/src/nix/repl.cc +++ b/third_party/nix/src/nix/repl.cc @@ -5,6 +5,7 @@ #include <iostream> #include <utility> +#include <absl/strings/ascii.h> #include <glog/logging.h> #ifdef READLINE @@ -122,7 +123,7 @@ void printHelp() { } string removeWhitespace(string s) { - s = chomp(s); + s = absl::StripTrailingAsciiWhitespace(s); size_t n = s.find_first_not_of(" \n\r\t"); if (n != string::npos) { s = string(s, n); |