File 2803-Fix-various-small-typos-in-the-OTP-Design-Principles.patch of Package erlang
From f5cf1840e6b491512d545037cc2cf4189ec79907 Mon Sep 17 00:00:00 2001
From: Lars Eric Olsson <lars@eric-olsson.com>
Date: Fri, 15 May 2020 13:57:02 +0200
Subject: [PATCH] Fix various small typos in the OTP Design Principles
---
system/doc/design_principles/applications.xml | 8 +++----
system/doc/design_principles/des_princ.xml | 7 +++---
system/doc/design_principles/events.xml | 7 +++---
.../design_principles/release_handling.xml | 13 +++++-----
.../design_principles/release_structure.xml | 9 ++++---
system/doc/design_principles/statem.xml | 24 +++++++++----------
system/doc/design_principles/sup_princ.xml | 7 +++---
7 files changed, 35 insertions(+), 40 deletions(-)
diff --git a/system/doc/design_principles/statem.xml b/system/doc/design_principles/statem.xml
index 8158416fb1..2d6ea27635 100644
--- a/system/doc/design_principles/statem.xml
+++ b/system/doc/design_principles/statem.xml
@@ -72,7 +72,7 @@ State(S) x Event(E) -> Actions(A), State(S')</pre>
in which the new state <c>S'</c> is different from
the current state <c>S</c>, where "different" means
Erlang's strict inequality: <c>=/=</c>
- also know as "does not match".
+ also known as "does not match".
<c>gen_statem</c> does more things during <em>state changes</em>
than during other <em>state transitions</em>.
</p>
@@ -120,7 +120,7 @@ State(S) x Event(E) -> Actions(A), State(S')</pre>
<seealso marker="#Inserted Events">
Inserted Events
</seealso>
- (that is, events from the state machine to itself;
+ (that is, events from the state machine to itself;
for purely internal events in particular)
</item>
<item>
@@ -483,8 +483,8 @@ State(S) x Event(E) -> Actions(A), State(S')</pre>
</seealso>
callback function is called before any
<seealso marker="#State Callback"><em>state callback</em></seealso>
- is called. This function behaves like an <em>state callback</em>
- function, but gets its only argument <c>Args</c> from
+ is called. This function behaves like a <em>state callback</em>
+ function, but gets its only argument <c>Args</c> from
the <c>gen_statem</c>
<seealso marker="stdlib:gen_statem#start/3">
<c>start/3,4</c>
@@ -1613,10 +1613,10 @@ open(cast, {button,_}, Data) ->
Note that no time-out message will arrive after this (because the timer has been explicitly canceled),
unless you have already postponed one earlier (see the next section),
so ensure that you do not accidentally postpone such messages.
- Also note that a time-out message may arrive during a **state callback**
+ Also note that a time-out message may arrive during a <em>state callback</em>
that is cancelling the timer, so you may have to read out
such a message from the process mailbox, depending on
- the return value from
+ the return value from
<seealso marker="erts:erlang#cancel_timer/2"><c>erlang:cancel_timer(Tref)</c></seealso>.
</p>
<p>
--
2.26.2