about summary refs log tree commit diff
path: root/src/rustdoc-json-types
diff options
context:
space:
mode:
authorwhosehang <whosehang@outlook.com>2024-04-24 13:58:51 +0800
committerwhosehang <whosehang@outlook.com>2024-04-24 13:58:51 +0800
commit65d7c1d2d621c607174f429d5f7553210315dbae (patch)
treed39cf7e818aaa04cc1698e04e2da483a8339b802 /src/rustdoc-json-types
parentc1feb3eceef7d5f0126c309a87062cf413fe0a25 (diff)
downloadrust-65d7c1d2d621c607174f429d5f7553210315dbae.tar.gz
rust-65d7c1d2d621c607174f429d5f7553210315dbae.zip
chore: fix some typos in comments
Signed-off-by: whosehang <whosehang@outlook.com>
Diffstat (limited to 'src/rustdoc-json-types')
-rw-r--r--src/rustdoc-json-types/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustdoc-json-types/lib.rs b/src/rustdoc-json-types/lib.rs
index 89d6f8d67f1..e788069ea80 100644
--- a/src/rustdoc-json-types/lib.rs
+++ b/src/rustdoc-json-types/lib.rs
@@ -314,7 +314,7 @@ pub enum StructKind {
     /// All [`Id`]'s will point to [`ItemEnum::StructField`]. Private and
     /// `#[doc(hidden)]` fields will be given as `None`
     Tuple(Vec<Option<Id>>),
-    /// A struct with nammed fields.
+    /// A struct with named fields.
     ///
     /// ```rust
     /// pub struct PlainStruct { x: i32 }