File tree 2 files changed +2
-2
lines changed
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> {
1122
1122
/// // this is Undefined Behavior, because x's inner type is str, not [u8]
1123
1123
/// Rc::get_mut_unchecked(&mut y).fill(0xff); // 0xff is invalid in UTF-8
1124
1124
/// }
1125
- /// println!("{}", &*x); // Invliad UTF-8 in a str
1125
+ /// println!("{}", &*x); // Invalid UTF-8 in a str
1126
1126
/// ```
1127
1127
/// Other `Rc` pointers to the same allocation must be to the exact same type, including lifetimes.
1128
1128
/// ```ignore
Original file line number Diff line number Diff line change @@ -1661,7 +1661,7 @@ impl<T: ?Sized> Arc<T> {
1661
1661
/// // this is Undefined Behavior, because x's inner type is str, not [u8]
1662
1662
/// Arc::get_mut_unchecked(&mut y).fill(0xff); // 0xff is invalid in UTF-8
1663
1663
/// }
1664
- /// println!("{}", &*x); // Invliad UTF-8 in a str
1664
+ /// println!("{}", &*x); // Invalid UTF-8 in a str
1665
1665
/// ```
1666
1666
/// Other `Arc` pointers to the same allocation must be to the exact same type, including lifetimes.
1667
1667
/// ```ignore
You can’t perform that action at this time.
0 commit comments