We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c980aba commit 340c25aCopy full SHA for 340c25a
src/libcore/marker.rs
@@ -273,7 +273,11 @@ macro_rules! impls{
273
/// even though it does not. This allows you to inform the compiler about certain safety properties
274
/// of your code.
275
///
276
-/// Though they both have scary names, `PhantomData<T>` and "phantom types" are unrelated. 👻👻👻
+/// # A ghastly note 👻👻👻
277
+///
278
+/// Though they both have scary names, `PhantomData<T>` and 'phantom types' are related, but not
279
+/// identical. Phantom types are a more general concept that don't require `PhantomData<T>` to
280
+/// implement, but `PhantomData<T>` is the most common way to implement them in a correct manner.
281
282
/// # Examples
283
0 commit comments