about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-09-16 11:17:00 +0530
committerGitHub <noreply@github.com>2022-09-16 11:17:00 +0530
commitb763cd53f4a2d2eedf043ff34954599b5941fa4d (patch)
treecc3cc39c1063681f19e55f12f6a6426baa7d6e8d /src
parent0ee5a1ac19133ecce34665c90257d4133e260fdc (diff)
parentfdf7ec8694f6d5df77e39434415072a450e54c3e (diff)
downloadrust-b763cd53f4a2d2eedf043ff34954599b5941fa4d.tar.gz
rust-b763cd53f4a2d2eedf043ff34954599b5941fa4d.zip
Rollup merge of #101722 - aDotInTheVoid:rdy-ty-prim-docs, r=CraftSpider
Rustdoc-Json: Fix Type docs.

Primitive doesn't include Array/Slice/Tuple, as they are their own variants.

ResolvedPath doesn't include Traits, as they appear in the DynTrait variant.
Diffstat (limited to 'src')
-rw-r--r--src/rustdoc-json-types/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rustdoc-json-types/lib.rs b/src/rustdoc-json-types/lib.rs
index 13bafa506e4..be1ff286efd 100644
--- a/src/rustdoc-json-types/lib.rs
+++ b/src/rustdoc-json-types/lib.rs
@@ -542,12 +542,12 @@ pub enum Term {
 #[serde(rename_all = "snake_case")]
 #[serde(tag = "kind", content = "inner")]
 pub enum Type {
-    /// Structs, enums, and traits
+    /// Structs and enums
     ResolvedPath(Path),
     DynTrait(DynTrait),
     /// Parameterized types
     Generic(String),
-    /// Fixed-size numeric types (plus int/usize/float), char, arrays, slices, and tuples
+    /// Built in numberic (i*, u*, f*) types, bool, and char
     Primitive(String),
     /// `extern "ABI" fn`
     FunctionPointer(Box<FunctionPointer>),