Fix textfmt typo: vaid -> valid

PiperOrigin-RevId: 594286947
pull/15214/head
Hong Shin 11 months ago committed by Copybara-Service
parent c2c01b6166
commit 50f0140780
  1. 2
      src/google/protobuf/text_format.cc

@ -1655,7 +1655,7 @@ namespace {
// UTF-8 validity issues. // UTF-8 validity issues.
bool DefinitelyNeedsEscape(unsigned char ch) { bool DefinitelyNeedsEscape(unsigned char ch) {
if (ch >= 0x80) { if (ch >= 0x80) {
return false; // High byte; no escapes necessary if UTF-8 is vaid. return false; // High byte; no escapes necessary if UTF-8 is valid.
} }
if (!absl::ascii_isprint(ch)) { if (!absl::ascii_isprint(ch)) {

Loading…
Cancel
Save