From 86f7df0dec316b43f57652a80e7b911d7b3788a5 Mon Sep 17 00:00:00 2001 From: Prokop Schield <76836484+prokopschield@users.noreply.github.com> Date: Thu, 23 Jan 2025 18:02:29 +0100 Subject: [PATCH 1/2] fix: typo --- src/sixth-variance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sixth-variance.md b/src/sixth-variance.md index 7b6aa17..fe17523 100644 --- a/src/sixth-variance.md +++ b/src/sixth-variance.md @@ -130,7 +130,7 @@ This is extremely annoying for Exactly Me as a person who has spent a lot of tim > Unlike `*mut T`, `NonNull` was chosen to be covariant over `T`. This makes it possible to use `NonNull` when building covariant types, but introduces the risk of unsoundness if used in a type that shouldn’t actually be covariant. -But hey, it's interface is built around `*mut T`, what's the deal! Is it just magic?! Let's look: +But hey, its interface is built around `*mut T`, what's the deal! Is it just magic?! Let's look: ```rust pub struct NonNull { From d2cf623f299110d1b34cb9819076e580b11eb239 Mon Sep 17 00:00:00 2001 From: Prokop Schield <76836484+prokopschield@users.noreply.github.com> Date: Thu, 23 Jan 2025 18:14:33 +0100 Subject: [PATCH 2/2] fix: comma --- src/sixth-basics.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sixth-basics.md b/src/sixth-basics.md index 5360e2c..31738de 100644 --- a/src/sixth-basics.md +++ b/src/sixth-basics.md @@ -15,7 +15,7 @@ impl LinkedList { } ``` -PhantomData is a weird type with no fields so you just make one by, saying its type name. *shrug* +PhantomData is a weird type with no fields, so you just make one by saying its type name. *shrug* ```rust ,ignore pub fn push_front(&mut self, elem: T) { @@ -183,4 +183,4 @@ test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; fini Hooray, we're perfect! -...Right? \ No newline at end of file +...Right?