Skip to content

Commit

Permalink
update proposal
Browse files Browse the repository at this point in the history
Signed-off-by: martinvuyk <martin.vuyklop@gmail.com>
  • Loading branch information
martinvuyk committed Jun 22, 2024
1 parent 14dff5f commit b79cac8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proposals/generic-iterator.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct StaticSizedIterator[size: Int, T: CollectionElement, A: HasNext[T]]:
fn __init__(inout self, has_next: A):
self._has_next = has_next
fn __iter__(self) -> Iterator[T]:
fn __iter__(self) -> Iterator[T, A]:
return Iterator(self)
fn __next__(self) -> T:
Expand All @@ -53,7 +53,7 @@ struct SizedIterator[T: CollectionElement, A: HasNextLen[T]]:
fn __init__(inout self, has_next: A):
self._has_next = has_next
fn __iter__(self) -> Iterator[T]:
fn __iter__(self) -> Iterator[T, A]:
return Iterator(self)
fn __next__(self) -> T:
Expand Down

0 comments on commit b79cac8

Please sign in to comment.