File 3081-Correct-some-details-in-the-operator-table.patch of Package erlang

From e91f8ddc34b7dd8a8c21bc4b3664c902857b4c98 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org>
Date: Thu, 15 Dec 2022 09:41:15 +0100
Subject: [PATCH] Correct some details in the operator table

* Change "priority" to the standard terminology "precedence".

* Document the changed precedence of the `catch` operator.

* Mention the restrictions of `?=` in a note after the operand table.

* Mark the non-associative binary operators as such in the operand table.
---
 system/doc/reference_manual/expressions.xml | 64 +++++++++++++++------
 1 file changed, 46 insertions(+), 18 deletions(-)

diff --git a/system/doc/reference_manual/expressions.xml b/system/doc/reference_manual/expressions.xml
index 341fa32432..5b96c50065 100644
--- a/system/doc/reference_manual/expressions.xml
+++ b/system/doc/reference_manual/expressions.xml
@@ -1496,7 +1496,7 @@ hello</pre>
     <p>If <c>throw/1</c> is not evaluated within a catch, a
       <c>nocatch</c> run-time error occurs.</p>
 
-      <p>Before Erlang/OTP 24, the <c>catch</c> operator had
+      <change><p>Before Erlang/OTP 24, the <c>catch</c> operator had
       the lowest precedence, making it necessary to add parentheses when
       combining it with the <c>match</c> operator:</p>
       <pre>
@@ -1511,6 +1511,7 @@ hello</pre>
 42
 2> <input>A.</input>
 42</pre>
+      </change>
   </section>
 
   <section>
@@ -2079,8 +2080,8 @@ KeyPattern := ValuePattern &lt;- MapExpr
       </row>
       <tcaption>Operator Precedence</tcaption>
     </table>
-    <p>Before Erlang/OTP 24, the <c>catch</c> operator had the lowest
-    precedence.</p>
+    <change><p>Before Erlang/OTP 24, the <c>catch</c> operator had the lowest
+    precedence.</p></change>
     <p>When evaluating an expression, the operator with the highest
       precedence is evaluated first. Operators with the same precedence
       are evaluated according to their associativity. Non-associative
-- 
2.35.3

openSUSE Build Service is sponsored by