Apply suggestions from code review

Fix spelling error.
This commit is contained in:
zachs18 2022-09-02 01:45:57 -05:00 committed by Zachary S
parent 8c38cb7709
commit f542b068f2
2 changed files with 2 additions and 2 deletions

View File

@ -1122,7 +1122,7 @@ impl<T: ?Sized> Rc<T> {
/// // this is Undefined Behavior, because x's inner type is str, not [u8] /// // 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 /// 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. /// Other `Rc` pointers to the same allocation must be to the exact same type, including lifetimes.
/// ```ignore /// ```ignore

View File

@ -1661,7 +1661,7 @@ impl<T: ?Sized> Arc<T> {
/// // this is Undefined Behavior, because x's inner type is str, not [u8] /// // 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 /// 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. /// Other `Arc` pointers to the same allocation must be to the exact same type, including lifetimes.
/// ```ignore /// ```ignore