@@ -354,31 +354,28 @@ macro_rules! izip {
354
354
/// The comma-separated arguments must implement [`IntoIterator`].
355
355
/// The final argument may be followed by a trailing comma.
356
356
///
357
- /// [`chain`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.chain
358
- /// [`IntoIterator`]: https://doc.rust-lang.org/std/iter/trait.IntoIterator.html
357
+ /// [`chain`]: Iterator::chain
359
358
///
360
359
/// # Examples
361
360
///
362
- /// [`iter::empty`]: https://doc.rust-lang.org/std/iter/fn.empty.html
363
- ///
364
- /// Empty invocations of `chain!` expand to an invocation of [`iter::empty`]:
361
+ /// Empty invocations of `chain!` expand to an invocation of [`std::iter::empty`]:
365
362
/// ```
366
- /// # use std::iter;
363
+ /// use std::iter;
367
364
/// use itertools::chain;
368
365
///
369
366
/// let _: iter::Empty<()> = chain!();
370
367
/// let _: iter::Empty<i8> = chain!();
371
368
/// ```
372
369
///
373
- /// Invocations of `chain!` with one argument expand to [`arg.into_iter()`][` IntoIterator`] :
370
+ /// Invocations of `chain!` with one argument expand to [`arg.into_iter()`]( IntoIterator) :
374
371
/// ```
375
372
/// use std::{ops::Range, slice};
376
373
/// use itertools::chain;
377
374
/// let _: <Range<_> as IntoIterator>::IntoIter = chain!((2..6),); // trailing comma optional!
378
375
/// let _: <&[_] as IntoIterator>::IntoIter = chain!(&[2, 3, 4]);
379
376
/// ```
380
377
///
381
- /// Invocations of `chain!` with multiple arguments [`.into_iter()`][` IntoIterator`] each
378
+ /// Invocations of `chain!` with multiple arguments [`.into_iter()`]( IntoIterator) each
382
379
/// argument, and then [`chain`] them together:
383
380
/// ```
384
381
/// use std::{iter::*, ops::Range, slice};
0 commit comments