mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
lib docs: fix typo
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user