From c5e758d3ad5e17579644c1d0a17a194ceba60328 Mon Sep 17 00:00:00 2001 From: neeko-cat <60898184+neeko-cat@users.noreply.github.com> Date: Mon, 2 Jun 2025 01:55:29 +0200 Subject: [PATCH] Fixed a typo in `ManuallyDrop`'s doc --- library/core/src/mem/manually_drop.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/mem/manually_drop.rs b/library/core/src/mem/manually_drop.rs index 7d519384e373c..02bb81792931e 100644 --- a/library/core/src/mem/manually_drop.rs +++ b/library/core/src/mem/manually_drop.rs @@ -84,7 +84,7 @@ use crate::ptr; /// use std::mem::ManuallyDrop; /// /// pub struct BadOption { -/// // Invariant: Has been dropped iff `is_some` is false. +/// // Invariant: Has been dropped if `is_some` is false. /// value: ManuallyDrop, /// is_some: bool, /// }