[GH-ISSUE #1101] Documentation bug in crate.io #607

Closed
opened 2026-03-15 23:25:26 +03:00 by kerem · 3 comments
Owner

Originally created by @jannewmarch on GitHub (May 11, 2020).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/1101

The example use on crate.io for turst-dns-resolver v0.19.5 has the line
let address = response.next().expect("no addresses returned!");
it should be
let address = response.iter().next().expect("no addresses returned!");

Originally created by @jannewmarch on GitHub (May 11, 2020). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/1101 The example use on crate.io for turst-dns-resolver v0.19.5 has the line let address = response.next().expect("no addresses returned!"); it should be let address = response.iter().next().expect("no addresses returned!");
kerem 2026-03-15 23:25:26 +03:00
Author
Owner

@bluejekyll commented on GitHub (May 11, 2020):

Oops! If you have some time, feel free to submit at PR.

<!-- gh-comment-id:626861860 --> @bluejekyll commented on GitHub (May 11, 2020): Oops! If you have some time, feel free to submit at PR.
Author
Owner

@muskuloes commented on GitHub (May 17, 2020):

Hi I just submitted a PR for this :)

<!-- gh-comment-id:629836100 --> @muskuloes commented on GitHub (May 17, 2020): Hi I just submitted a PR for this :)
Author
Owner

@bluejekyll commented on GitHub (May 19, 2020):

Fixed in #1108

<!-- gh-comment-id:630983079 --> @bluejekyll commented on GitHub (May 19, 2020): Fixed in #1108
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#607
No description provided.