@@ -380,7 +380,7 @@ struct Layout {
380380 /// # Invariants
381381 ///
382382 /// For well-formed layouts, this value is less than `isize::MAX` and is a multiple of the alignment.
383- /// To accomodate incomplete layouts (i.e., those missing trailing padding), this is not a safety invariant.
383+ /// To accommodate incomplete layouts (i.e., those missing trailing padding), this is not a safety invariant.
384384 pub size : usize ,
385385 /// The log₂(alignment) of a type.
386386 ///
@@ -558,7 +558,7 @@ The design of this proposal is primarily guided by three tenets:
558558 Uses of ` unsafe ` fields that cannot violate their invariants * should not* require an unsafe
559559 block.
560560
561- This RFC prioritizes the first two tenets before the third. We believe that the benefits doing so —
561+ This RFC prioritizes the first two tenets before the third. We believe that the benefits of doing so —
562562broader utility, more consistent tooling, and a simplified safety hygiene story — outweigh its
563563cost, [ alarm fatigue] ( #alarm-fatigue ) . The third tenet implores us to weigh this cost.
564564
@@ -896,7 +896,7 @@ user internalize this hierarchy, or else risk selecting the wrong modifier for t
896896
897897Although we cannot explore the entire design space of syntactic modifiers here, we broadly feel that
898898their additional complexity exceeds that of our proposed design. Our proposed rule that * a field
899- marked ` unsafe ` is unsafe to use* is both pedagogically simple and fail safe ; i.e., so long as a
899+ marked ` unsafe ` is unsafe to use* is both pedagogically simple and failsafe ; i.e., so long as a
900900field is marked ` unsafe ` , it cannot be misused in such a way that its invariant is violated in safe
901901code.
902902
0 commit comments