Apply suggestions from code review
Fix spelling error.
This commit is contained in:
parent
8c38cb7709
commit
f542b068f2
@ -1122,7 +1122,7 @@ impl<T: ?Sized> Rc<T> {
|
||||
/// // 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
|
||||
|
@ -1661,7 +1661,7 @@ impl<T: ?Sized> Arc<T> {
|
||||
/// // 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user