Internal change

PiperOrigin-RevId: 569295536
pull/14243/head
Hong Shin 1 year ago committed by Copybara-Service
parent 0433561505
commit 0c3f579e45
  1. 2
      src/google/protobuf/compiler/parser.cc
  2. 2
      src/google/protobuf/compiler/parser_unittest.cc

@ -2410,7 +2410,7 @@ bool Parser::ParseLabel(FieldDescriptorProto::Label* label,
}
if (LookingAt("optional") && syntax_identifier_ == "editions") {
RecordError(
"Label \"optional\" is not supported in editions. By default, all "
"Label \"optional\" is not supported in editions. By default, all "
"singular fields have presence unless features.field_presence is set.");
}
if (LookingAt("required") && syntax_identifier_ == "editions") {

@ -4225,7 +4225,7 @@ TEST_F(ParseEditionsTest, OptionalKeywordBanned) {
message A {
optional int32 b = 1;
})schema",
"3:10: Label \"optional\" is not supported in editions. By default, all "
"3:10: Label \"optional\" is not supported in editions. By default, all "
"singular fields have presence unless features.field_presence is set.\n");
}

Loading…
Cancel
Save