about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIvan Enderlin <ivan@mnt.io>2025-08-07 13:20:09 +0200
committerIvan Enderlin <ivan@mnt.io>2025-08-07 13:20:09 +0200
commitc65102e745c5637d0da3e9649aaba7afdce7aa08 (patch)
tree3febb77790f276a8bd6583bee90f921fe48d3dca
parent9b1a30e5e69e1537ef6eb6eb829eb47075206dea (diff)
doc(library): Fix Markdown in `Iterator::by_ref`.
This patch fixes the Markdown formatting in
`std::core::iter::Iterator::by_ref`. Code is used inside a link without
the backticks around the code.
-rw-r--r--library/core/src/iter/traits/iterator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/iter/traits/iterator.rs b/library/core/src/iter/traits/iterator.rs
index 29313867ff2..7fb162a653f 100644
--- a/library/core/src/iter/traits/iterator.rs
+++ b/library/core/src/iter/traits/iterator.rs
@@ -1875,7 +1875,7 @@ pub trait Iterator {
     /// without giving up ownership of the original iterator,
     /// so you can use the original iterator afterwards.
     ///
-    /// Uses [impl<I: Iterator + ?Sized> Iterator for &mut I { type Item = I::Item; ...}](https://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#impl-Iterator-for-%26mut+I).
+    /// Uses [`impl<I: Iterator + ?Sized> Iterator for &mut I { type Item = I::Item; ...}`](https://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#impl-Iterator-for-%26mut+I).
     ///
     /// # Examples
     ///