]> git.lizzy.rs Git - rust.git/commitdiff
lib docs: fix typo
authorRalf Jung <post@ralfj.de>
Thu, 8 Dec 2022 21:36:57 +0000 (22:36 +0100)
committerRalf Jung <post@ralfj.de>
Thu, 8 Dec 2022 21:36:57 +0000 (22:36 +0100)
library/core/src/ptr/mod.rs

index 89b11637ecabefc0405209cfe16c11b6accc1912..1a0d9a3d0cecc00d5cfc88bc6fa80856dff6ca91 100644 (file)
@@ -1769,7 +1769,7 @@ pub unsafe fn write_volatile<T>(dst: *mut T, src: T) {
 /// (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).