]> git.lizzy.rs Git - rust.git/blobdiff - src/doc/nomicon/phantom-data.md
Rollup merge of #34849 - tshepang:patch-2, r=apasel422
[rust.git] / src / doc / nomicon / phantom-data.md
index 4843cd420df19953bea20b458d5625d43f58b16b..d565532017a65982d518e2453b780743e609a266 100644 (file)
@@ -56,7 +56,7 @@ Good to go!
 
 Nope.
 
-The drop checker will generously determine that Vec<T> does not own any values
+The drop checker will generously determine that `Vec<T>` does not own any values
 of type T. This will in turn make it conclude that it doesn't need to worry
 about Vec dropping any T's in its destructor for determining drop check
 soundness. This will in turn allow people to create unsoundness using
@@ -81,7 +81,7 @@ Raw pointers that own an allocation is such a pervasive pattern that the
 standard library made a utility for itself called `Unique<T>` which:
 
 * wraps a `*const T` for variance
-* includes a `PhantomData<T>`,
+* includes a `PhantomData<T>`
 * auto-derives Send/Sync as if T was contained
 * marks the pointer as NonZero for the null-pointer optimization