Skip to content

Commit 6277d9e

Browse files
committed
fix: doctest
1 parent 0ff41cf commit 6277d9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/@local/hashql/core/src/id/array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ impl<I: Id, T, const N: usize> IdArray<I, T, N> {
242242
/// # use hashql_core::{id::{IdArray, Id as _}, newtype};
243243
/// # newtype!(struct SlotId(u32 is 0..=2));
244244
/// let array = IdArray::<SlotId, &str, 3>::from_raw(["a", "b", "c"]);
245-
/// let pairs: Vec<_> = array.into_iter_enumerated().collect();
245+
/// let pairs: Vec<_> = array.into_iter_enumerated().into_iter().collect();
246246
///
247247
/// assert_eq!(pairs[0], (SlotId::new(0), "a"));
248248
/// assert_eq!(pairs[2], (SlotId::new(2), "c"));

0 commit comments

Comments
 (0)