Skip to content

Commit f542b06

Browse files
committed
Apply suggestions from code review
Fix spelling error.
1 parent 8c38cb7 commit f542b06

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/alloc/src/rc.rs

+1-1
Original file line numberDiff line numberDiff 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

library/alloc/src/sync.rs

+1-1
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)