Commit 23dc7595 by Michael Shields Committed by GitHub

Improve example AbslUnparseFlag().

1. Move default case outside switch.  This is a good practice because it allows -Wswitch to warn about missing enum values.

2. Use absl::StrCat() instead of (nonexistent) SimpleItoa().
parent 43ef2148
......@@ -108,8 +108,8 @@
// switch (mode) {
// case kPlainText: return "plaintext";
// case kHtml: return "html";
// default: return SimpleItoa(mode);
// }
// return absl::SimpleItoa(mode);
// }
//
// 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