]> git.lizzy.rs Git - rust.git/blobdiff - src/libcore/clone.rs
Prefer `ClassName` over `Self` in example trait implementations
[rust.git] / src / libcore / clone.rs
index 489aa66885fc0c05c778e5e65f7e718eda8e7eac..e8cd36f3cd70bf13d751790bcbefdb2e9a16a937 100644 (file)
@@ -79,7 +79,7 @@
 /// }
 ///
 /// impl Clone for Stats {
-///     fn clone(&self) -> Self { *self }
+///     fn clone(&self) -> Stats { *self }
 /// }
 /// ```
 #[stable(feature = "rust1", since = "1.0.0")]