Rollup merge of #105474 - RalfJung:typo, r=dtolnay

lib docs: fix typo

r? `@thomcc`
This commit is contained in:
Matthias Krüger 2022-12-09 07:25:48 +01:00 committed by GitHub
commit 3d727315c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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