]> git.lizzy.rs Git - rust.git/commitdiff
Add `Copy` to the traits that are automatically implemented for tuples
authorTobias Bucher <tobiasbucher5991@gmail.com>
Wed, 6 Apr 2016 18:10:33 +0000 (20:10 +0200)
committerTobias Bucher <tobiasbucher5991@gmail.com>
Wed, 6 Apr 2016 18:10:33 +0000 (20:10 +0200)
src/libstd/primitive_docs.rs

index c8ea28c5ca39f324c5fd1986c3e42638fdbec12a..e083605a2acd5bf1ed38d6b1d7b29023b38cd296 100644 (file)
@@ -425,10 +425,11 @@ mod prim_str { }
 ///
 /// # Trait implementations
 ///
-/// If every type inside a tuple implements one of the following
-/// traits, then a tuple itself also implements it.
+/// If every type inside a tuple implements one of the following traits, then a
+/// tuple itself also implements it.
 ///
 /// * [`Clone`]
+/// * [`Copy`]
 /// * [`PartialEq`]
 /// * [`Eq`]
 /// * [`PartialOrd`]
@@ -438,6 +439,7 @@ mod prim_str { }
 /// * [`Hash`]
 ///
 /// [`Clone`]: clone/trait.Clone.html
+/// [`Copy`]: marker/trait.Copy.html
 /// [`PartialEq`]: cmp/trait.PartialEq.html
 /// [`Eq`]: cmp/trait.Eq.html
 /// [`PartialOrd`]: cmp/trait.PartialOrd.html