about summary refs log tree commit diff
path: root/src/librustdoc/html/format.rs
diff options
context:
space:
mode:
authorTom Jakubowski <tom@crystae.net>2015-03-23 14:01:28 -0700
committerTom Jakubowski <tom@crystae.net>2015-03-23 14:02:34 -0700
commit2df8830642fffa6c68aa6318985cfcd2e63db81b (patch)
tree75d69a6bdb9727c6ecf6c5816cec96b2e169b9af /src/librustdoc/html/format.rs
parentb0aad7dd4fad8d7e2e2f877a511a637258949597 (diff)
downloadrust-2df8830642fffa6c68aa6318985cfcd2e63db81b.tar.gz
rust-2df8830642fffa6c68aa6318985cfcd2e63db81b.zip
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`.
Diffstat (limited to 'src/librustdoc/html/format.rs')
-rw-r--r--src/librustdoc/html/format.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs
index 03a2d708ee4..0e6e008c616 100644
--- a/src/librustdoc/html/format.rs
+++ b/src/librustdoc/html/format.rs
@@ -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("!"),