Skip to content

Commit

Permalink
Fix Typos in Supervision Principles Docs
Browse files Browse the repository at this point in the history
line 492:
missing "," 

line 536: I think "indata" is not correct.

line 570:
Of course, only one of them could be used: either "the important exception" or "an important exception".
But "one important exception" is better than both of them.
https://ludwig.guru/s/important+exception
  • Loading branch information
neo-clj authored Nov 16, 2023
1 parent f3827dd commit a01a8bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system/doc/design_principles/sup_princ.xml
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ child_spec() = #{id => child_id(), % mandatory
<p>or simplified, relying on the default values:</p>
<code type="none">
#{id => ch3,
start => {ch3, start_link, []}
start => {ch3, start_link, []},
shutdown => brutal_kill}</code>
<p>Example: A child specification to start the event manager from
the chapter about
Expand Down Expand Up @@ -533,7 +533,7 @@ start_link() ->
<item>The second argument, <c>[]</c>, is a term that is passed
as is to
the callback function <c>init</c>. Here, <c>init</c> does not
need any indata and ignores the argument.</item>
need any data and ignores the argument.</item>
</list>
<p>In this case, the supervisor is not registered. Instead its pid
must be used. A name can be specified by calling
Expand Down Expand Up @@ -567,7 +567,7 @@ supervisor:start_child(Sup, ChildSpec)</code>
<c>ChildSpec</c> is a
<seeguide marker="#spec">child specification</seeguide>.</p>
<p>Child processes added using <c>start_child/2</c> behave in
the same way as the other child processes, with the an important
the same way as the other child processes, with one important
exception: if a supervisor dies and is recreated, then
all child processes that were dynamically added to the supervisor
are lost.</p>
Expand Down

0 comments on commit a01a8bf

Please sign in to comment.