Commit 5162fc83 by Shaindel Schwartz Committed by GitHub

Merge pull request #336 from shields/patch-2

Improve example AbslUnparseFlag().
parents 0389f7bf ec0742d3
...@@ -106,10 +106,10 @@ ...@@ -106,10 +106,10 @@
// // Returns a textual flag value corresponding to the OutputMode `mode`. // // Returns a textual flag value corresponding to the OutputMode `mode`.
// std::string AbslUnparseFlag(OutputMode mode) { // std::string AbslUnparseFlag(OutputMode mode) {
// switch (mode) { // switch (mode) {
// case kPlainText: return "plaintext"; // case kPlainText: return "plaintext";
// case kHtml: return "html"; // case kHtml: return "html";
// default: return SimpleItoa(mode);
// } // }
// return absl::StrCat(mode);
// } // }
// //
// Notice that neither `AbslParseFlag()` nor `AbslUnparseFlag()` are class // Notice that neither `AbslParseFlag()` nor `AbslUnparseFlag()` are class
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment