Skip to content

Commit

Permalink
error: Type mismatch
Browse files Browse the repository at this point in the history
```
error: Type mismatch
     ┌─ C:\coding\projects\realtime_chat\build\packages\birl\src\birl.gleam:1163:3
     │
1163 │   range
     │   ^^^^^

The type of this returned value doesn't match the return type
annotation of this function.
instead

error: Type mismatch
     ┌─ C:\coding\projects\realtime_chat\build\packages\birl\src\birl.gleam:1163:3
     │
1163 │   range
     │   ^^^^^

The type of this returned value doesn't match the return type
annotation of this function.

Expected type:

    iterator.Iterator(Time)

Found type:

    yielder.Yielder(Time)

```
  • Loading branch information
kemo-1 authored Dec 18, 2024
1 parent fab749a commit 0698e30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/birl.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import gleam/order
import gleam/regexp
import gleam/result
import gleam/string

import gleam/yielder
import birl/duration
import birl/zones

Expand Down Expand Up @@ -1153,7 +1153,7 @@ pub fn range(
from a: Time,
to b: option.Option(Time),
step s: duration.Duration,
) -> iterator.Iterator(Time) {
) -> yielder.Yielder(Time) {
let assert Ok(range) = case b {
option.Some(b) ->
ranger.create(
Expand Down

0 comments on commit 0698e30

Please sign in to comment.