File 2022-dialyzer-Correct-documentation-for-missing-extra_ret.patch of Package erlang

From fd3e07096958bf37380c489f9d6b1167b075cc80 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?John=20H=C3=B6gberg?= <john@erlang.org>
Date: Tue, 24 May 2022 14:04:46 +0200
Subject: [PATCH] dialyzer: Correct documentation for missing/extra_return

---
 lib/dialyzer/doc/src/dialyzer.xml | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/lib/dialyzer/doc/src/dialyzer.xml b/lib/dialyzer/doc/src/dialyzer.xml
index a6340929b2..a73d883691 100644
--- a/lib/dialyzer/doc/src/dialyzer.xml
+++ b/lib/dialyzer/doc/src/dialyzer.xml
@@ -318,13 +318,13 @@ dialyzer --plts plt_1 ... plt_n -- files_to_analyze</code>
       </item>
       <tag><c>-Wextra_return</c> (***)</tag>
       <item>
-        <p>Warn about functions that return values that are not part of the
-          specification.</p>
+        <p>Warn about functions whose specification includes types that the
+          function cannot return.</p>
       </item>
       <tag><c>-Wmissing_return</c> (***)</tag>
       <item>
-        <p>Warn about functions whose specification includes types that the
-          function cannot return.</p>
+        <p>Warn about functions that return values that are not part of the
+          specification.</p>
       </item>
       <tag><c>-Wno_behaviours</c></tag>
       <item>
@@ -432,13 +432,13 @@ dialyzer --plts plt_1 ... plt_n -- files_to_analyze</code>
       </item>
       <tag><c>-Wno_extra_return</c></tag>
       <item>
-        <p>Suppress warnings about functions that return values that are not
-          part of the specification.</p>
+        <p>Suppress warnings about functions whose specification includes types
+          that the function cannot return.</p>
       </item>
       <tag><c>-Wno_missing_return</c></tag>
       <item>
-        <p>Suppress warnings about functions whose specification includes types
-          that the function cannot return.</p>
+        <p>Suppress warnings about functions that return values that are not
+          part of the specification.</p>
       </item>
     </taglist>
 
-- 
2.35.3

openSUSE Build Service is sponsored by