about summary refs log tree commit diff
path: root/absl
diff options
context:
space:
mode:
authorShaindel Schwartz <31392632+shaindelschwartz@users.noreply.github.com>2019-06-25T00·52-0400
committerGitHub <noreply@github.com>2019-06-25T00·52-0400
commit5162fc83d2f3b79a9753ed59594c43966afdd37a (patch)
tree9a2135593bda653f2f2254c5db24cb23700b0d73 /absl
parent0389f7bf58fa41f35b3ad60be61d32f31e4f8ed6 (diff)
parentec0742d37ba5b8be38764298d8956adc1b773be3 (diff)
Merge pull request #336 from shields/patch-2
Improve example AbslUnparseFlag().
Diffstat (limited to 'absl')
-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 7eb75cde7623..f9e2959437a1 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