]> git.lizzy.rs Git - rust.git/commitdiff
FixedSizeArray: Add missing links in doc comments.
authorBruce Mitchener <bruce.mitchener@gmail.com>
Thu, 1 Aug 2019 08:07:40 +0000 (15:07 +0700)
committerBruce Mitchener <bruce.mitchener@gmail.com>
Thu, 1 Aug 2019 13:24:05 +0000 (20:24 +0700)
src/libcore/array.rs

index 517893a1967dc63b39801bc06ec2e4e4891a2e70..b5614010e5c2f2b1730d93092b1fd6c38b7105ab 100644 (file)
 /// layout in memory of a fixed size array (for example, for unsafe
 /// initialization).
 ///
-/// Note that the traits AsRef and AsMut provide similar methods for types that
+/// Note that the traits [`AsRef`] and [`AsMut`] provide similar methods for types that
 /// may not be fixed-size arrays. Implementors should prefer those traits
 /// instead.
+///
+/// [`AsRef`]: ../convert/trait.AsRef.html
+/// [`AsMut`]: ../convert/trait.AsMut.html
 #[unstable(feature = "fixed_size_array", issue = "27778")]
 pub unsafe trait FixedSizeArray<T> {
     /// Converts the array to immutable slice