diff options
| author | ap29600 <66381278+ap29600@users.noreply.github.com> | 2022-02-04 22:39:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-04 22:39:47 +0100 |
| commit | b54fc96b1e36ff83922d7af9d8126e3fff0d8078 (patch) | |
| tree | bc5acb0c0a532f43a77703959687303899dfd6f7 /core/container/bit_array | |
| parent | 48af78e46981540b9071b382052777060ba83c23 (diff) | |
rename `iterator` proc to `next`, add named return values
Diffstat (limited to 'core/container/bit_array')
| -rw-r--r-- | core/container/bit_array/bit_array.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/container/bit_array/bit_array.odin b/core/container/bit_array/bit_array.odin index f06cf74e7..bf2ae3a40 100644 --- a/core/container/bit_array/bit_array.odin +++ b/core/container/bit_array/bit_array.odin @@ -34,7 +34,7 @@ Bit_Array_Iterator :: struct { - ok: bool - `true` if the iterator returned a valid index, `false` if there were no more bits set */ -iterator :: proc (it: ^Bit_Array_Iterator) -> (int, bool) { +next :: proc (it: ^Bit_Array_Iterator) -> (index: int, ok: bool) { words := it.array.bits // if the word is empty or we have already gone over all the bits in it, // b.current_bit is greater than the index of any set bit in the word, |