Skip to content

Commit 310b1f7

Browse files
authored
Fix typos in Enum.entries KEEP (#346)
1 parent 7218d2c commit 310b1f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

proposals/enum-entries.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Apart from that, most of the API being written leverages Collections API, not ar
3434

3535
* [HttpStatus.resolve allocates HttpStatus.values() once per invocation](https://github.com/spring-projects/spring-framework/issues/26842)
3636
* [Kotlin standard library](https://github.com/JetBrains/kotlin/blob/92d200e093c693b3c06e53a39e0b0973b84c7ec5/libraries/stdlib/jvm/src/kotlin/text/CharCategoryJVM.kt#L170)
37-
* [kotlinx.serializarion Enum deserializer]( https://github.com/Kotlin/kotlinx.serialization/issues/1372)
37+
* [kotlinx.serialization Enum deserializer]( https://github.com/Kotlin/kotlinx.serialization/issues/1372)
3838
* [MySQL JDBC Remove Enum.values() calls to avoid unnecessary array](https://github.com/Microsoft/mssql-jdbc/pull/1065)
3939

4040
## Proposal
@@ -87,7 +87,7 @@ Various languages use different notations to refer to enumeration elements, maki
8787
We have considered the following alternatives:
8888

8989
* `values` property. While being the most familiar one, it carries the burdens of the existing `values()` API:
90-
* It is easy to misspel it with `values()` and fall into the same trap.
90+
* It is easy to misspell it with `values()` and fall into the same trap.
9191
* Introduction of `values` property adds an unfixable method reference ambiguity for all the callers of `E::values`.
9292
* Java language [refers](https://docs.oracle.com/javase/specs/jls/se7/html/jls-8.html#jls-8.9.1) to enum elements as `constants`.
9393
* The risks of introducing widely-used API named `constants` with the potential clashes with [Kotlin constant evaluation](https://youtrack.jetbrains.com/issue/KT-14652) outweighs the benefits of the straightforward name.
@@ -184,7 +184,7 @@ as well as artificial de-prioritization of `entries` member for multiple additio
184184
### Developers familiarity with `values`
185185

186186
The second risk is the education disturbance and a new name for developers to get familiar with — `entries`, opposed to already well-known `values`.
187-
It is mitigated by indefinitely long [soft decommision](#decommission-of-enumvalues) instead of a regular deprecation cycle, as well as by our learning materials, official recommendations and overall adoption over official tools and libraries.
187+
It is mitigated by indefinitely long [soft decommission](#decommission-of-enumvalues) instead of a regular deprecation cycle, as well as by our learning materials, official recommendations and overall adoption over official tools and libraries.
188188

189189
## Collateral changes
190190

0 commit comments

Comments
 (0)