Skip to content

Commit

Permalink
docs: Add missing fn in docs (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekosz authored Oct 2, 2024
1 parent 8b4f956 commit b7e6ae9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions documentation/dsls/DSL:-Reactor.md
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ map :double_numbers do
step :double do
argument :number, element(:double_numbers)
run %{number: number}, _, _ ->
run fn %{number: number}, _, _ ->
{:ok, number * 2}
end
end
Expand All @@ -1068,7 +1068,7 @@ end

```
step :get_subscriptions do
run _, _, _ ->
run fn _, _, _ ->
Stripe.Subscription.list()
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/reactor/dsl/map.ex
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ defmodule Reactor.Dsl.Map do
step :double do
argument :number, element(:double_numbers)
run %{number: number}, _, _ ->
run fn %{number: number}, _, _ ->
{:ok, number * 2}
end
end
end
""",
"""
step :get_subscriptions do
run _, _, _ ->
run fn _, _, _ ->
Stripe.Subscription.list()
end
end
Expand Down

0 comments on commit b7e6ae9

Please sign in to comment.