]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #41204 - remexre:master, r=steveklabnik
authorCorey Farwell <coreyf@rwell.org>
Tue, 11 Apr 2017 22:36:15 +0000 (18:36 -0400)
committerGitHub <noreply@github.com>
Tue, 11 Apr 2017 22:36:15 +0000 (18:36 -0400)
Fixes incorrect formatting in array's documentation.

Changes

 - [`Clone`][clone] (only if `T: [Copy][copy]`)

to

 - [`Clone`][clone] (only if `T: `[`Copy`](copy))

r? @steveklabnik

src/libstd/primitive_docs.rs

index 5b2053e929a10317d645126fcbd16e163dd0cc10..052340a0f253a11cf43e257c5da563b62c7585f8 100644 (file)
@@ -277,7 +277,7 @@ mod prim_pointer { }
 /// Arrays of sizes from 0 to 32 (inclusive) implement the following traits if
 /// the element type allows it:
 ///
-/// - [`Clone`][clone] (only if `T: [Copy][copy]`)
+/// - [`Clone`][clone] (only if `T: `[`Copy`][copy])
 /// - [`Debug`][debug]
 /// - [`IntoIterator`][intoiterator] (implemented for `&[T; N]` and `&mut [T; N]`)
 /// - [`PartialEq`][partialeq], [`PartialOrd`][partialord], [`Eq`][eq], [`Ord`][ord]