File 0905-Fix-Typos-in-Supervision-Principles-Docs.patch of Package erlang
From a01a8bfeb77e0384f04d105a312a82d2d3e2ebcd Mon Sep 17 00:00:00 2001
From: neo <79276645+neo-clj@users.noreply.github.com>
Date: Thu, 16 Nov 2023 12:57:19 +0330
Subject: [PATCH] Fix Typos in Supervision Principles Docs
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
---
system/doc/design_principles/sup_princ.xml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/system/doc/design_principles/sup_princ.xml b/system/doc/design_principles/sup_princ.xml
index c9aa52669b..e0de3d8130 100644
--- a/system/doc/design_principles/sup_princ.xml
+++ b/system/doc/design_principles/sup_princ.xml
@@ -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
@@ -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
@@ -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>
--
2.35.3