Skip to content

Commit 556283f

Browse files
amatalaiJosé Valim
authored andcommitted
Improve GenStage docs (#244)
* Fix typo defauts -> defaults * Remove duplicated word setting setting -> setting
1 parent 5c443e4 commit 556283f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/gen_stage.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ defmodule GenStage do
646646
defined module to be put under a supervision tree in Elixir v1.5+.
647647
The generated `child_spec/1` can be customized with the following options:
648648
649-
* `:id` - the child specification id, defauts to the current module
649+
* `:id` - the child specification id, defaults to the current module
650650
* `:start` - how to start the child process (defaults to calling `__MODULE__.start_link/1`)
651651
* `:restart` - when the child should be restarted, defaults to `:permanent`
652652
* `:shutdown` - how to shut down the child
@@ -1576,7 +1576,7 @@ defmodule GenStage do
15761576
the enumerable stage and the `:cancel` option is set to
15771577
`:permanent`, which is the default, the consumer will also exit
15781578
with `:normal` reason. This behaviour can be changed by setting
1579-
setting the `:cancel` option to either `:transient` or `:temporary`
1579+
the `:cancel` option to either `:transient` or `:temporary`
15801580
at the moment of subscription as described in the `sync_subscribe/3`
15811581
docs.
15821582

0 commit comments

Comments
 (0)