File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -236,19 +236,15 @@ enum TestEnum {
236236}
237237```
238238
239- Note #1 : As explained in the protobuf language guide,
240- negative enum values are encoded less efficiently than
241- positive values and are therefore not recommended.
242-
243- Note #2: Enum aliases can potentially result in conflicting names
239+ Note #1 : Enum aliases can potentially result in conflicting names
244240even after appending the case numeric value.
245241Since aliases are only supported to provide alternate names for
246242the same underlying numeric value, SwiftProtobuf simply drops
247243the alias in such cases.
248244See the protobuf documentation for `allow_alias` for more information
249245about enum case aliases.
250246
251- Note #3 : In most cases where an enum case name might conflict with a
247+ Note #2 : In most cases where an enum case name might conflict with a
252248Swift reserved word, or otherwise cause problems, the code generator
253249will protect the enum case name by surrounding it with backticks.
254250In the few cases where this is insufficient, the code generator
You can’t perform that action at this time.
0 commit comments