File 0165-Update-system-doc-design_principles-statem.xml.patch of Package erlang
From 47087e2f02084815bfbd43c804cbbe91da6bd398 Mon Sep 17 00:00:00 2001
From: Bryan Paxton <39971740+starbelly@users.noreply.github.com>
Date: Mon, 12 Sep 2022 10:38:43 -0500
Subject: [PATCH 5/8] Update system/doc/design_principles/statem.xml
Co-authored-by: Paulo F. Oliveira <paulo.ferraz.oliveira@gmail.com>
---
system/doc/design_principles/statem.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/system/doc/design_principles/statem.xml b/system/doc/design_principles/statem.xml
index 01140c5236..60288d2e3d 100644
--- a/system/doc/design_principles/statem.xml
+++ b/system/doc/design_principles/statem.xml
@@ -1915,7 +1915,7 @@ do_unlock() ->
A catch-all receive should never be used from a <c>gen_statem</c>
behaviour (or from any <c>gen_*</c> behaviour),
as the receive statement is within the <c>gen_*</c> engine itself.
- Using a receive with a catch all match may result in system messages
+ Using such a receive may result in system messages
being discarded which in turn may lead to unexpected behaviour.
If a selective receive must be used then great care should be taken to
ensure messages only messages pertinent to the operation are caught.
--
2.35.3