Skip to content

Commit b763cd5

Browse files
authored
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.
2 parents 0ee5a1a + fdf7ec8 commit b763cd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rustdoc-json-types/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -542,12 +542,12 @@ pub enum Term {
542542
#[serde(rename_all = "snake_case")]
543543
#[serde(tag = "kind", content = "inner")]
544544
pub enum Type {
545-
/// Structs, enums, and traits
545+
/// Structs and enums
546546
ResolvedPath(Path),
547547
DynTrait(DynTrait),
548548
/// Parameterized types
549549
Generic(String),
550-
/// Fixed-size numeric types (plus int/usize/float), char, arrays, slices, and tuples
550+
/// Built in numberic (i*, u*, f*) types, bool, and char
551551
Primitive(String),
552552
/// `extern "ABI" fn`
553553
FunctionPointer(Box<FunctionPointer>),

0 commit comments

Comments
 (0)