From c64d1ace2a0b10bc6e42ac2338bc02c152d74451 Mon Sep 17 00:00:00 2001 From: "Lan, Jian" Date: Fri, 4 Oct 2024 19:53:01 +0800 Subject: [PATCH] Fix a typo and use rustc instead of Rustc (#419) Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com> --- src/anti_patterns/deny-warnings.md | 2 +- src/patterns/ffi/wrappers.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/anti_patterns/deny-warnings.md b/src/anti_patterns/deny-warnings.md index a959e237..7a4e1cf7 100644 --- a/src/anti_patterns/deny-warnings.md +++ b/src/anti_patterns/deny-warnings.md @@ -54,7 +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 +is a list of warning lints that is (hopefully) safe to deny (as of rustc 1.48.0): ```rust,ignore diff --git a/src/patterns/ffi/wrappers.md b/src/patterns/ffi/wrappers.md index 7a7d60ac..3c396db9 100644 --- a/src/patterns/ffi/wrappers.md +++ b/src/patterns/ffi/wrappers.md @@ -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!