Skip to content

Commit

Permalink
fix doc examples
Browse files Browse the repository at this point in the history
  • Loading branch information
zth committed Aug 26, 2024
1 parent e2715ee commit 1d43cf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core__AsyncIterator.resi
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type value<'a> = {
context := currentValue + 1
{
value: Some(currentValue),
AsyncIterator.value: Some(currentValue),
done: currentValue >= 3
}
})
Expand Down Expand Up @@ -110,7 +110,7 @@ See [async iterator protocols](https://developer.mozilla.org/en-US/docs/Web/Java
- A simple example, getting the next value:
```rescript
@val external asyncIterator: AsyncIterator.t<int> = "someAsyncIterator"
let {done, value} = await asyncIterator->AsyncIterator.next
let value = await asyncIterator->AsyncIterator.next
```
- Complete example, including looping over all values:
Expand Down

0 comments on commit 1d43cf4

Please sign in to comment.