]> git.lizzy.rs Git - rust.git/commitdiff
Format code-like text in Iterator::cloned doc-comment
authorCorey Farwell <coreyf@rwell.org>
Thu, 8 Oct 2015 12:00:02 +0000 (08:00 -0400)
committerCorey Farwell <coreyf@rwell.org>
Thu, 8 Oct 2015 12:00:02 +0000 (08:00 -0400)
src/libcore/iter.rs

index 00c7773fd8ba8455464f04ccf394582cb4959952..3554325d0dbfc94c7701f37f4efd8b79db9d018a 100644 (file)
@@ -935,7 +935,7 @@ fn size_hint(&self) -> (usize, Option<usize>) {
 
     /// Creates an iterator that clones the elements it yields.
     ///
-    /// This is useful for converting an Iterator<&T> to an Iterator<T>,
+    /// This is useful for converting an `Iterator<&T>` to an`Iterator<T>`,
     /// so it's a more convenient form of `map(|&x| x)`.
     ///
     /// # Examples