From d2be1c8d009997584112954b7ee806e07a322eda Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 20 Jul 2025 22:35:43 +0200 Subject: [PATCH] Option::as_slice: fix comment --- library/core/src/option.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/option.rs b/library/core/src/option.rs index 8036c59e893a3..0e481519f76fb 100644 --- a/library/core/src/option.rs +++ b/library/core/src/option.rs @@ -842,7 +842,7 @@ impl Option { // just needs to be aligned, which it is because `&self` is aligned and // the offset used is a multiple of alignment. // - // In the new version, the intrinsic always returns a pointer to an + // Here we assume that `offset_of!` always returns an offset to an // in-bounds and correctly aligned position for a `T` (even if in the // `None` case it's just padding). unsafe {