diff options
| author | Nixon Enraght-Moony <nixon.emoony@gmail.com> | 2022-09-12 14:56:04 +0100 |
|---|---|---|
| committer | Nixon Enraght-Moony <nixon.emoony@gmail.com> | 2022-09-12 14:56:04 +0100 |
| commit | fdf7ec8694f6d5df77e39434415072a450e54c3e (patch) | |
| tree | b12e7a5540df4fcb39313aad4793ad5a71ea405a | |
| parent | 2e44c17c12cec45b6a682b1e53a04ac5b5fcc9d2 (diff) | |
| download | rust-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.rs | 4 |
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>), |
