From f542b068f24b4129ef99162f5bcf66e8290f9aac Mon Sep 17 00:00:00 2001 From: zachs18 <8355914+zachs18@users.noreply.github.com> Date: Fri, 2 Sep 2022 01:45:57 -0500 Subject: [PATCH] Apply suggestions from code review Fix spelling error. --- library/alloc/src/rc.rs | 2 +- library/alloc/src/sync.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/alloc/src/rc.rs b/library/alloc/src/rc.rs index 8ac1b5b488a..c1db035167b 100644 --- a/library/alloc/src/rc.rs +++ b/library/alloc/src/rc.rs @@ -1122,7 +1122,7 @@ impl Rc { /// // this is Undefined Behavior, because x's inner type is str, not [u8] /// Rc::get_mut_unchecked(&mut y).fill(0xff); // 0xff is invalid in UTF-8 /// } - /// println!("{}", &*x); // Invliad UTF-8 in a str + /// println!("{}", &*x); // Invalid UTF-8 in a str /// ``` /// Other `Rc` pointers to the same allocation must be to the exact same type, including lifetimes. /// ```ignore diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs index e4d7bfdaeed..e32ce5a9891 100644 --- a/library/alloc/src/sync.rs +++ b/library/alloc/src/sync.rs @@ -1661,7 +1661,7 @@ impl Arc { /// // this is Undefined Behavior, because x's inner type is str, not [u8] /// Arc::get_mut_unchecked(&mut y).fill(0xff); // 0xff is invalid in UTF-8 /// } - /// println!("{}", &*x); // Invliad UTF-8 in a str + /// println!("{}", &*x); // Invalid UTF-8 in a str /// ``` /// Other `Arc` pointers to the same allocation must be to the exact same type, including lifetimes. /// ```ignore