Skip to content

Commit 5205a56

Browse files
committed
Fix doctest
1 parent ff8e419 commit 5205a56

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rustler/src/wrapped_types/list.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ wrapper!(
2929
/// the `Result`s out of the list. (Contains extra type annotations for clarity)
3030
///
3131
/// ```
32-
/// # use rustler::{Term, NifResult};
33-
/// # use rustler::types::list::ListIterator;
32+
/// # use rustler::{Term, NifResult, ListIterator};
3433
/// # fn list_iterator_example(list_term: Term) -> NifResult<Vec<i64>> {
3534
/// let list_iterator: ListIterator = list_term.decode()?;
3635
///
@@ -55,7 +54,7 @@ impl<'a> Iterator for ListIterator<'a> {
5554
// TODO: This is unsafe as tail might not be a list.
5655
self.0 = tail;
5756
Some(head)
58-
},
57+
}
5958
None => {
6059
if self.is_empty_list() {
6160
// We reached the end of the list, finish the iterator.

0 commit comments

Comments
 (0)