File 0551-Adjust-documentation-of-erlang-module_loaded.patch of Package erlang
From d8f0b12a36e33c49213ebadb4effc64730da3fc5 Mon Sep 17 00:00:00 2001
From: Rickard Green <rickard@erlang.org>
Date: Wed, 9 Nov 2022 14:37:33 +0100
Subject: [PATCH] Adjust documentation of erlang:module_loaded()
* State that it only returns true when module is loaded as current code
* Remove warning about usage from other processes than code-server
---
erts/doc/src/erlang.xml | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml
index 8a8a219b97..34fb78e323 100644
--- a/erts/doc/src/erlang.xml
+++ b/erts/doc/src/erlang.xml
@@ -4370,14 +4370,13 @@ RealSystem = system + MissedSystem</code>
<name name="module_loaded" arity="1" since=""/>
<fsummary>Check if a module is loaded.</fsummary>
<desc>
- <p>Returns <c>true</c> if the module <c><anno>Module</anno></c>
- is loaded, otherwise <c>false</c>. It does not attempt to load
- the module.</p>
- <warning>
- <p>This BIF is intended for the code server (see
- <seeerl marker="kernel:code"><c>code(3)</c></seeerl>)
- and is not to be used elsewhere.</p>
- </warning>
+ <p>
+ Returns <c>true</c> if the module <c><anno>Module</anno></c> is
+ loaded as
+ <seeguide marker="system/reference_manual:code_loading#code-replacement">
+ <i>current code</i></seeguide>; otherwise, <c>false</c>. It does
+ not attempt to load the module.
+ </p>
</desc>
</func>
--
2.35.3