Skip to content

Commit 816d4e7

Browse files
committed
Fix miscellaneous grammar issues
- Fix spelling of "accommodate". - Fix missing "of" in "the benefits doing so" -> "the benefits of doing so". - Use "failsafe" (one word) when used as an adjective.
1 parent 45c3c55 commit 816d4e7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

text/3458-unsafe-fields.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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 —
562562
broader utility, more consistent tooling, and a simplified safety hygiene story — outweigh its
563563
cost, [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

897897
Although we cannot explore the entire design space of syntactic modifiers here, we broadly feel that
898898
their 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
900900
field is marked `unsafe`, it cannot be misused in such a way that its invariant is violated in safe
901901
code.
902902

0 commit comments

Comments
 (0)