File 3591-system-Clarify-documentation-for-enabling-maybe.patch of Package erlang

From b045056a5451806f22e14e9379691f8f7bb2a842 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?John=20H=C3=B6gberg?= <john@erlang.org>
Date: Mon, 2 Jan 2023 11:24:13 +0100
Subject: [PATCH] system: Clarify documentation for enabling 'maybe'

---
 system/doc/reference_manual/expressions.xml | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/system/doc/reference_manual/expressions.xml b/system/doc/reference_manual/expressions.xml
index 003c959687..ee1d1b5712 100644
--- a/system/doc/reference_manual/expressions.xml
+++ b/system/doc/reference_manual/expressions.xml
@@ -400,10 +400,11 @@ is_valid_signal(Signal) ->
     <note><p><c>maybe</c> is an experimental new <seeguide
     marker="system/reference_manual:features#features">feature</seeguide>
     introduced in OTP 25. By default, it is disabled. To enable
-    <c>maybe</c>, use compiler option
-    <c>{feature,maybe_expr,enable}</c>.  The feature must also be
-    enabled in the runtime using the <c>-enable-feature</c> option to
-    <c>erl</c>.</p></note>
+    <c>maybe</c>, either use the <c>-feature(maybe_expr,enable)</c>
+    directive (from within source code), or the compiler option
+    <c>{feature,maybe_expr,enable}</c>. The feature must also be enabled
+    in runtime using the <c>-enable-feature</c> option to <c>erl</c>.</p>
+    </note>
 
     <code type="erl"><![CDATA[
 maybe
-- 
2.35.3

openSUSE Build Service is sponsored by