Skip to content

Commit f47e4e8

Browse files
committed
Remove note that just repeats Google docs, as suggested by thomasvl
1 parent a2e0fd7 commit f47e4e8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Documentation/API.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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
244240
even after appending the case numeric value.
245241
Since aliases are only supported to provide alternate names for
246242
the same underlying numeric value, SwiftProtobuf simply drops
247243
the alias in such cases.
248244
See the protobuf documentation for `allow_alias` for more information
249245
about 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
252248
Swift reserved word, or otherwise cause problems, the code generator
253249
will protect the enum case name by surrounding it with backticks.
254250
In the few cases where this is insufficient, the code generator

0 commit comments

Comments
 (0)