rustdoc: Support for "array" primitive
Impls on `clean::Type::FixedVector` are now collected in the array primitive page instead of the slice primitive page. Also add a primitive docs for arrays to `std`.
This commit is contained in:
parent
b0aad7dd4f
commit
2df8830642
6 changed files with 38 additions and 10 deletions
|
|
@ -486,7 +486,7 @@ impl fmt::Display for clean::Type {
|
|||
primitive_link(f, clean::Slice, &format!("[{}]", **t))
|
||||
}
|
||||
clean::FixedVector(ref t, ref s) => {
|
||||
primitive_link(f, clean::Slice,
|
||||
primitive_link(f, clean::PrimitiveType::Array,
|
||||
&format!("[{}; {}]", **t, *s))
|
||||
}
|
||||
clean::Bottom => f.write_str("!"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue