diff --git a/crates/js-sys/src/lib.rs b/crates/js-sys/src/lib.rs index 0dd9c5be..b633a192 100644 --- a/crates/js-sys/src/lib.rs +++ b/crates/js-sys/src/lib.rs @@ -1176,6 +1176,9 @@ extern { pub fn next(this: &Iterator) -> Result; } +/// An iterator over the JS `Symbol.iterator` iteration protocol. +/// +/// Use the `IntoIterator for &js_sys::Iterator` implementation to create this. pub struct Iter<'a> { js: &'a Iterator, state: IterState,