summaryrefslogtreecommitdiff
path: root/absl/flags
diff options
context:
space:
mode:
authorGravatar Shaindel Schwartz <31392632+shaindelschwartz@users.noreply.github.com>2019-06-24 20:52:35 -0400
committerGravatar GitHub <noreply@github.com>2019-06-24 20:52:35 -0400
commit5162fc83d2f3b79a9753ed59594c43966afdd37a (patch)
tree9a2135593bda653f2f2254c5db24cb23700b0d73 /absl/flags
parent0389f7bf58fa41f35b3ad60be61d32f31e4f8ed6 (diff)
parentec0742d37ba5b8be38764298d8956adc1b773be3 (diff)
Merge pull request #336 from shields/patch-2
Improve example AbslUnparseFlag().
Diffstat (limited to 'absl/flags')
-rw-r--r--absl/flags/marshalling.h6
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