@@ -141,7 +141,7 @@ entity was first exposed publicly in the current module.
141
141
142
142
Using the same attribute for both publishing and using versioned APIs helps tie
143
143
the feature together and enforces a consistent set of rules. The one difference
144
- is that code within a library may always use all other entites declared within
144
+ is that code within a library may always use all other entities declared within
145
145
the library (barring their own availability checks), since the entire library
146
146
is shipped as a unit. That is, even if a particular API was introduced in v1.0,
147
147
its (non-public) implementation may refer to APIs introduced in later versions.
@@ -207,7 +207,7 @@ Closed Enums
207
207
By default, a library owner may add new cases to a public enum between releases
208
208
without breaking binary compatibility. As with structs, this results in a fair
209
209
amount of indirection when dealing with enum values, in order to potentially
210
- accomodate new values.
210
+ accommodate new values.
211
211
212
212
.. note ::
213
213
@@ -216,7 +216,7 @@ accomodate new values.
216
216
representation for the value, just as it may discard fields of structs that
217
217
are provably never accessed.
218
218
219
- A library owner may opt out of this flexiblity by marking the enum as
219
+ A library owner may opt out of this flexibility by marking the enum as
220
220
``@closed ``. A "closed" enum may not have any ``private `` or ``internal `` cases
221
221
and may not add new cases in the future. This guarantees to clients that the
222
222
enum cases are exhaustive.
@@ -535,7 +535,7 @@ a normal dependency.
535
535
A publicly inlineable function still has a public symbol, which may be used
536
536
when the function is referenced from a client rather than called. This version
537
537
of the function is not subject to the same restrictions as the version that
538
- may be inlined, and so it may be desireable to compile a function twice: once
538
+ may be inlined, and so it may be desirable to compile a function twice: once
539
539
for inlining, once for maximum performance.
540
540
541
541
@@ -647,7 +647,7 @@ for verification. Important cases include but are not limited to:
647
647
- Unsafely-backdated "fragile" attributes as discussed in the `Giving Up
648
648
Flexibility `_ section.
649
649
650
- - Unsafe modifications to entites marked with the "fragile" attributes, such as
650
+ - Unsafe modifications to entities marked with the "fragile" attributes, such as
651
651
adding a stored property to a ``@fixed_layout `` struct.
652
652
653
653
0 commit comments