diff options
| author | ozkanonur <work@onurozkan.dev> | 2023-05-07 00:12:29 +0300 |
|---|---|---|
| committer | ozkanonur <work@onurozkan.dev> | 2023-05-07 00:12:29 +0300 |
| commit | 4e7c14fe9f03dd0189f954bd9cb97c3c513e7eed (patch) | |
| tree | fa8a777bab81cc492a0df4d8bd6d40efc17d2ae4 /library/core/src/iter | |
| parent | 8b8110e1469d459a196f6feb60d82dec48c3cfc2 (diff) | |
| download | rust-4e7c14fe9f03dd0189f954bd9cb97c3c513e7eed.tar.gz rust-4e7c14fe9f03dd0189f954bd9cb97c3c513e7eed.zip | |
enable `rust_2018_idioms` for doctests
Signed-off-by: ozkanonur <work@onurozkan.dev>
Diffstat (limited to 'library/core/src/iter')
| -rw-r--r-- | library/core/src/iter/adapters/chain.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/iter/adapters/chain.rs b/library/core/src/iter/adapters/chain.rs index 2046b70c9c6..9fae9f6744c 100644 --- a/library/core/src/iter/adapters/chain.rs +++ b/library/core/src/iter/adapters/chain.rs @@ -15,7 +15,7 @@ use crate::ops::Try; /// /// let a1 = [1, 2, 3]; /// let a2 = [4, 5, 6]; -/// let iter: Chain<Iter<_>, Iter<_>> = a1.iter().chain(a2.iter()); +/// let iter: Chain<Iter<'_, _>, Iter<'_, _>> = a1.iter().chain(a2.iter()); /// ``` #[derive(Clone, Debug)] #[must_use = "iterators are lazy and do nothing unless consumed"] |
