about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLokathor <zefria@gmail.com>2024-05-07 18:35:00 -0600
committerLokathor <zefria@gmail.com>2024-05-07 18:35:00 -0600
commit10f8d1ffef464d8c6cc8add49f5850cf8a33cfb3 (patch)
treec3e886a1cad3c7d0d5622d4a3968af88da6e264a
parentf94fa6bee3bf1c7d313452db0bafbce0960196ff (diff)
downloadrust-10f8d1ffef464d8c6cc8add49f5850cf8a33cfb3.tar.gz
rust-10f8d1ffef464d8c6cc8add49f5850cf8a33cfb3.zip
use teletype on the attribute name
-rw-r--r--library/core/src/result.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/result.rs b/library/core/src/result.rs
index 16c97284104..b82351ea1fa 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<NonZeroI32, ()>` or `Result<(), NonZeroI32>` would both
 //! have the same guarantees as `Option<NonZeroI32>`. The only difference is the