about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNixon Enraght-Moony <nixon.emoony@gmail.com>2022-09-12 14:56:04 +0100
committerNixon Enraght-Moony <nixon.emoony@gmail.com>2022-09-12 14:56:04 +0100
commitfdf7ec8694f6d5df77e39434415072a450e54c3e (patch)
treeb12e7a5540df4fcb39313aad4793ad5a71ea405a
parent2e44c17c12cec45b6a682b1e53a04ac5b5fcc9d2 (diff)
downloadrust-fdf7ec8694f6d5df77e39434415072a450e54c3e.tar.gz
rust-fdf7ec8694f6d5df77e39434415072a450e54c3e.zip
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.
-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>),