Skip to content

Commit 05874de

Browse files
committed
Link Nomicon in PhantomData's docs
Fixes #30069
1 parent 03f4950 commit 05874de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libcore/marker.rs

+4
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,10 @@ macro_rules! impls{
295295
/// even though it does not. This allows you to inform the compiler about certain safety properties
296296
/// of your code.
297297
///
298+
/// For a more in-depth explanation of how to use `PhantomData<T>`, please see [the Nomicon].
299+
///
300+
/// [the Nomicon]: ../../nomicon/phantom-data.html
301+
///
298302
/// # A ghastly note 👻👻👻
299303
///
300304
/// Though they both have scary names, `PhantomData<T>` and 'phantom types' are related, but not

0 commit comments

Comments
 (0)