Skip to content

Commit 718257d

Browse files
Removes potentially confusing references to version 3.5.
PiperOrigin-RevId: 845407800
1 parent 8c42472 commit 718257d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

content/programming-guides/proto2.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,10 +1165,8 @@ fields that the parser does not recognize. For example, when an old binary
11651165
parses data sent by a new binary with new fields, those new fields become
11661166
unknown fields in the old binary.
11671167

1168-
Originally, proto3 messages always discarded unknown fields during parsing, but
1169-
in version 3.5 we reintroduced the preservation of unknown fields to match the
1170-
proto2 behavior. In versions 3.5 and later, unknown fields are retained during
1171-
parsing and included in the serialized output.
1168+
Proto2 messages preserve unknown fields and include them during parsing and in
1169+
the serialized output.
11721170

11731171
### Retaining Unknown Fields {#retaining}
11741172

0 commit comments

Comments
 (0)