Skip to content

Commit 3d72731

Browse files
authored
Rollup merge of #105474 - RalfJung:typo, r=dtolnay
lib docs: fix typo r? `@thomcc`
2 parents 3e7aadc + a25791e commit 3d72731

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/ptr/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1769,7 +1769,7 @@ pub(crate) const unsafe fn align_offset<T: Sized>(p: *const T, a: usize) -> usiz
17691769
/// (which is what the `PartialEq for &T` implementation does).
17701770
///
17711771
/// When comparing wide pointers, both the address and the metadata are tested for equality.
1772-
/// However, note that comparing trait object pointers (`*const dyn Trait`) is unrealiable: pointers
1772+
/// However, note that comparing trait object pointers (`*const dyn Trait`) is unreliable: pointers
17731773
/// to values of the same underlying type can compare inequal (because vtables are duplicated in
17741774
/// multiple codegen units), and pointers to values of *different* underlying type can compare equal
17751775
/// (since identical vtables can be deduplicated within a codegen unit).

0 commit comments

Comments
 (0)