Skip to content

Commit

Permalink
Fix a typo and use rustc instead of Rustc
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapelessCat committed Oct 3, 2024
1 parent f716b89 commit 0a98bc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/anti_patterns/deny-warnings.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ Travis, but remember that this may break the build when something changes)
without requiring a change to the code.

Alternatively, we can specify the lints that we want to `deny` in the code. Here
is a list of warning lints that is (hopefully) safe to deny (as of Rustc
1.48.0):
is a list of warning lints that is (hopefully) safe to deny (as of rustc 1.48.0):

```rust,ignore
#![deny(
Expand Down
2 changes: 1 addition & 1 deletion src/patterns/ffi/wrappers.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pub mod unsafe_module {
// other module content
pub fn myset_store(myset: *mut MySetWrapper, key: datum, value: datum) -> libc::c_int {
// DO NOT USE THIS CODE. IT IS UNSAFE TO DEMONSTRATE A PROLBEM.
// DO NOT USE THIS CODE. IT IS UNSAFE TO DEMONSTRATE A PROBLEM.
let myset: &mut MySet = unsafe {
// SAFETY: whoops, UB occurs in here!
Expand Down

0 comments on commit 0a98bc9

Please sign in to comment.