File 0381-These-examples-can-be-rendered-as-erlang.patch of Package erlang

From e2bacb921bfc14cb53be14fc1501a6f2f1cb8a40 Mon Sep 17 00:00:00 2001
From: Nelson Vides <nelson.vides@erlang-solutions.com>
Date: Mon, 3 Mar 2025 22:15:06 +0100
Subject: [PATCH] These examples can be rendered as erlang

---
 lib/stdlib/src/ets.erl | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/lib/stdlib/src/ets.erl b/lib/stdlib/src/ets.erl
index 5cbe903357..c8205e15a0 100644
--- a/lib/stdlib/src/ets.erl
+++ b/lib/stdlib/src/ets.erl
@@ -1326,38 +1326,38 @@ or using the special match variables `'$_'` (the whole matching object) and
 `'$$'` (all match variables in a list), so that the following
 [`match/2`](`match/2`) expression:
 
-```text
+```erlang
 ets:match(Table,{'$1','$2','$3'})
 ```
 
 is exactly equivalent to:
 
-```text
+```erlang
 ets:select(Table,[{{'$1','$2','$3'},[],['$$']}])
 ```
 
 And that the following [`match_object/2`](`match_object/2`) call:
 
-```text
+```erlang
 ets:match_object(Table,{'$1','$2','$1'})
 ```
 
 is exactly equivalent to
 
-```text
+```erlang
 ets:select(Table,[{{'$1','$2','$1'},[],['$_']}])
 ```
 
 Composite terms can be constructed in the `Result` part either by simply writing
 a list, so that the following code:
 
-```text
+```erlang
 ets:select(Table,[{{'$1','$2','$3'},[],['$$']}])
 ```
 
 gives the same output as:
 
-```text
+```erlang
 ets:select(Table,[{{'$1','$2','$3'},[],[['$1','$2','$3']]}])
 ```
 
@@ -1368,7 +1368,7 @@ mistaken for a `Guard`).
 
 Therefore the following call:
 
-```text
+```erlang
 ets:select(Table,[{{'$1','$2','$1'},[],['$_']}])
 ```
 
@@ -1393,13 +1393,13 @@ The `Guard` section can also contain logic and arithmetic operations, which are
 written with the same syntax as the guard tests (prefix notation), so that the
 following guard test written in Erlang:
 
-```text
+```erlang
 is_integer(X), is_integer(Y), X + Y < 4711
 ```
 
 is expressed as follows (`X` replaced with `'$1'` and `Y` with `'$2'`):
 
-```text
+```erlang
 [{is_integer, '$1'}, {is_integer, '$2'}, {'<', {'+', '$1', '$2'}, 4711}]
 ```
 
-- 
2.43.0

openSUSE Build Service is sponsored by