diff options
author | Shaindel Schwartz <31392632+shaindelschwartz@users.noreply.github.com> | 2019-06-24 20:52:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-24 20:52:35 -0400 |
commit | 5162fc83d2f3b79a9753ed59594c43966afdd37a (patch) | |
tree | 9a2135593bda653f2f2254c5db24cb23700b0d73 | |
parent | 0389f7bf58fa41f35b3ad60be61d32f31e4f8ed6 (diff) | |
parent | ec0742d37ba5b8be38764298d8956adc1b773be3 (diff) |
Merge pull request #336 from shields/patch-2
Improve example AbslUnparseFlag().
-rw-r--r-- | absl/flags/marshalling.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/absl/flags/marshalling.h b/absl/flags/marshalling.h index 7eb75cde..f9e29594 100644 --- a/absl/flags/marshalling.h +++ b/absl/flags/marshalling.h @@ -106,10 +106,10 @@ // // Returns a textual flag value corresponding to the OutputMode `mode`. // std::string AbslUnparseFlag(OutputMode mode) { // switch (mode) { -// case kPlainText: return "plaintext"; -// case kHtml: return "html"; -// default: return SimpleItoa(mode); +// case kPlainText: return "plaintext"; +// case kHtml: return "html"; // } +// return absl::StrCat(mode); // } // // Notice that neither `AbslParseFlag()` nor `AbslUnparseFlag()` are class |