Skip to content

Commit 8949b81

Browse files
committed
rustdoc: Fix broken link to Itertools::format
1 parent 1d60f9e commit 8949b81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustdoc/display.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ use std::fmt::{self, Display, Formatter, FormattingOptions};
55
pub(crate) trait Joined: IntoIterator {
66
/// Takes an iterator over elements that implement [`Display`], and format them into `f`, separated by `sep`.
77
///
8-
/// This is similar to [`Itertools::format`](itertools::Itertools::format), but instead of returning an implementation of `Display`,
8+
/// This is similar to [`Itertools::format`], but instead of returning an implementation of `Display`,
99
/// it formats directly into a [`Formatter`].
1010
///
1111
/// The performance of `joined` is slightly better than `format`, since it doesn't need to use a `Cell` to keep track of whether [`fmt`](Display::fmt)
1212
/// was already called (`joined`'s API doesn't allow it be called more than once).
13+
///
14+
/// [`Itertools::format`]: https://docs.rs/itertools/latest/itertools/trait.Itertools.html#method.format
1315
fn joined(&mut self, sep: impl Display, f: &mut Formatter<'_>) -> fmt::Result;
1416
}
1517

0 commit comments

Comments
 (0)