Skip to content

Commit a25791e

Browse files
committed
lib docs: fix typo
1 parent 7632db0 commit a25791e

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)