Skip to content

Commit

Permalink
Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach committed Feb 21, 2022
1 parent 56ef402 commit 271d2d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen_stage.exs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule Producer do
def handle_demand(demand, counter) do
# If the counter is 3 and we ask for 2 items, we will
# emit the items 3 and 4, and set the state to 5.
events = Enum.to_list(counter..counter+demand-1)
events = Enum.to_list(counter..(counter + demand - 1))
{:noreply, events, counter + demand}
end
end
Expand Down

0 comments on commit 271d2d8

Please sign in to comment.