Skip to content

Commit

Permalink
Change operator
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Aug 5, 2022
1 parent 75496cc commit 53c1110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trailing_lambda.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ pub fn one_example() -> Promise(Int) {
}

pub fn one_example_with() -> Promise(Int) {
with x <- async_function() |> promise.then
with x = async_function() |> promise.then
let y = sync_function()
with z <- async_function() |> promise.then
with z = async_function() |> promise.then
promise.resolve(x + y + z)
}

Expand Down

0 comments on commit 53c1110

Please sign in to comment.