diff options
| author | Ralf Jung <post@ralfj.de> | 2022-12-08 22:36:57 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-12-08 22:36:57 +0100 |
| commit | a25791ee618a30e161f19bb37e2aea11806a1a82 (patch) | |
| tree | 097c48ae16b697c6f99ced132f4eb621260176fb | |
| parent | 7632db0e87d8adccc9a83a47795c9411b1455855 (diff) | |
| download | rust-a25791ee618a30e161f19bb37e2aea11806a1a82.tar.gz rust-a25791ee618a30e161f19bb37e2aea11806a1a82.zip | |
lib docs: fix typo
| -rw-r--r-- | library/core/src/ptr/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/ptr/mod.rs b/library/core/src/ptr/mod.rs index 89b11637eca..1a0d9a3d0ce 100644 --- a/library/core/src/ptr/mod.rs +++ b/library/core/src/ptr/mod.rs @@ -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). |
