Skip to content

Commit 73d0340

Browse files
authored
Rollup merge of #78554 - camelid:improve-drop_in_place-docs-wording, r=jyn514
Improve wording of `core::ptr::drop_in_place` docs And two small intra-doc link conversions in `std::{f32, f64}`.
2 parents 05f80f0 + fee4f8f commit 73d0340

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

library/core/src/ptr/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ mod mut_ptr;
9999
/// dropped normally.
100100
///
101101
/// * It is friendlier to the optimizer to do this over [`ptr::read`] when
102-
/// dropping manually allocated memory (e.g., when writing Box/Rc/Vec),
103-
/// as the compiler doesn't need to prove that it's sound to elide the
104-
/// copy.
102+
/// dropping manually allocated memory (e.g., in the implementations of
103+
/// `Box`/`Rc`/`Vec`), as the compiler doesn't need to prove that it's
104+
/// sound to elide the copy.
105105
///
106106
/// * It can be used to drop [pinned] data when `T` is not `repr(packed)`
107107
/// (pinned data must not be moved before it is dropped).

library/std/src/f32.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! This module provides constants which are specific to the implementation
22
//! of the `f32` floating point data type.
33
//!
4-
//! *[See also the `f32` primitive type](../../std/primitive.f32.html).*
4+
//! *[See also the `f32` primitive type](primitive@f32).*
55
//!
66
//! Mathematically significant numbers are provided in the `consts` sub-module.
77
//!

library/std/src/f64.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! This module provides constants which are specific to the implementation
22
//! of the `f64` floating point data type.
33
//!
4-
//! *[See also the `f64` primitive type](../../std/primitive.f64.html).*
4+
//! *[See also the `f64` primitive type](primitive@f64).*
55
//!
66
//! Mathematically significant numbers are provided in the `consts` sub-module.
77
//!

0 commit comments

Comments
 (0)