Skip to content

Commit

Permalink
Use subjunctive mood
Browse files Browse the repository at this point in the history
It's more correct to say "were" rather than "was" here, and it sounds
better to my ear.
  • Loading branch information
traviscross committed Oct 17, 2024
1 parent a0e67b9 commit a89f927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posts/2024-10-17-Rust-1.82.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ For further details, see [RFC 3484](https://github.com/rust-lang/rfcs/blob/maste

### Unsafe attributes

Some Rust attributes, such as [`no_mangle`](https://doc.rust-lang.org/reference/abi.html#the-no_mangle-attribute), can be used to [cause undefined behavior without any `unsafe` block](https://github.com/rust-lang/rust/issues/28179). If this was regular code we would require them to be placed in an `unsafe {}` block, but so far attributes have not had comparable syntax. To reflect the fact that these attributes can undermine Rust's safety guarantees, they are now considered "unsafe" and should be written as follows:
Some Rust attributes, such as [`no_mangle`](https://doc.rust-lang.org/reference/abi.html#the-no_mangle-attribute), can be used to [cause undefined behavior without any `unsafe` block](https://github.com/rust-lang/rust/issues/28179). If this were regular code we would require them to be placed in an `unsafe {}` block, but so far attributes have not had comparable syntax. To reflect the fact that these attributes can undermine Rust's safety guarantees, they are now considered "unsafe" and should be written as follows:

```rust
#[unsafe(no_mangle)]
Expand Down

0 comments on commit a89f927

Please sign in to comment.