Skip to content

Commit

Permalink
docs: Update examples with feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
erikareads authored and lpil committed Dec 5, 2023
1 parent 08abd18 commit 55db3dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gleam/otp/supervisor.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ pub fn supervisor(
/// ## Examples
///
/// ```gleam
/// worker(fn(supervisor_settings) {
/// actor.start(supervisor_settings.initial_state, my_actor_loop)
/// worker(fn(argument) {
/// my_actor.start(argument)
/// })
/// ```
///
Expand Down Expand Up @@ -351,7 +351,7 @@ fn loop(
/// ## Examples
///
/// ```gleam
/// let worker = worker(actor.start(_, my_worker))
/// let worker = worker(my_actor.start)
///
/// let children = fn(children) {
/// children
Expand Down Expand Up @@ -387,7 +387,7 @@ pub fn start_spec(spec: Spec(a, b)) -> Result(Subject(Message), StartError) {
/// ## Examples
///
/// ```gleam
/// let worker = worker(actor.start(_, my_worker))
/// let worker = worker(my_actor.start)
///
/// let children = fn(children) {
/// children
Expand Down

0 comments on commit 55db3dd

Please sign in to comment.