File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1122,7 +1122,7 @@ impl<T: ?Sized> Rc<T> {
11221122 /// // this is Undefined Behavior, because x's inner type is str, not [u8]
11231123 /// Rc::get_mut_unchecked(&mut y).fill(0xff); // 0xff is invalid in UTF-8
11241124 /// }
1125- /// println!("{}", &*x); // Invliad UTF-8 in a str
1125+ /// println!("{}", &*x); // Invalid UTF-8 in a str
11261126 /// ```
11271127 /// Other `Rc` pointers to the same allocation must be to the exact same type, including lifetimes.
11281128 /// ```ignore
Original file line number Diff line number Diff line change @@ -1661,7 +1661,7 @@ impl<T: ?Sized> Arc<T> {
16611661 /// // this is Undefined Behavior, because x's inner type is str, not [u8]
16621662 /// Arc::get_mut_unchecked(&mut y).fill(0xff); // 0xff is invalid in UTF-8
16631663 /// }
1664- /// println!("{}", &*x); // Invliad UTF-8 in a str
1664+ /// println!("{}", &*x); // Invalid UTF-8 in a str
16651665 /// ```
16661666 /// Other `Arc` pointers to the same allocation must be to the exact same type, including lifetimes.
16671667 /// ```ignore
You can’t perform that action at this time.
0 commit comments