diff --git a/library/core/src/result.rs b/library/core/src/result.rs index 16c97284104d4..b82351ea1fa3c 100644 --- a/library/core/src/result.rs +++ b/library/core/src/result.rs @@ -232,7 +232,7 @@ //! all of the following conditions: //! * Is a zero-sized type with alignment 1 (a "1-ZST"). //! * Has no fields. -//! * Does not have the #[non_exhaustive] attribute. +//! * Does not have the `#[non_exhaustive]` attribute. //! //! For example, `Result` or `Result<(), NonZeroI32>` would both //! have the same guarantees as `Option`. The only difference is the