Skip to content

Commit

Permalink
fix typo (#8492)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgfraser committed Oct 17, 2023
1 parent cc4eefd commit 97a2dc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference/schedule/repetition.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ val policy: Schedule[R1, A, B] = ???
val repeated = action repeat policy
```

There is another version of `repeat` that helps us to have a fallback strategy in case of erros, if something goes wrong we can handle that by using the `ZIO#repeatOrElse` function, which helps up to add an `orElse` callback that will run in case of repetition failure:
There is another version of `repeat` that helps us to have a fallback strategy in case of errors, if something goes wrong we can handle that by using the `ZIO#repeatOrElse` function, which helps up to add an `orElse` callback that will run in case of repetition failure:

```scala
val action: ZIO[R, E, A] = ???
Expand Down

0 comments on commit 97a2dc5

Please sign in to comment.