File 0305-erlang-module-doc-Improve-documentation-for-erlang-a.patch of Package erlang

From 426596373bf8f9ed49e57240f55a91c2922b156e Mon Sep 17 00:00:00 2001
From: Kjell Winblad <kjellwinblad@gmail.com>
Date: Mon, 31 Aug 2020 11:02:14 +0200
Subject: [PATCH 05/39] erlang module doc: Improve documentation for
 erlang:atom_to_list/1

* Example of atom with unicode characters
* The result is a list of unicode code points
---
 erts/doc/src/erlang.xml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml
index c7e13548a9..60220ef29a 100644
--- a/erts/doc/src/erlang.xml
+++ b/erts/doc/src/erlang.xml
@@ -413,11 +413,17 @@ Z = erlang:adler32_combine(X,Y,iolist_size(Data2)).</code>
       <name name="atom_to_list" arity="1" since=""/>
       <fsummary>Text representation of an atom.</fsummary>
       <desc>
-        <p>Returns a string corresponding to the text
+        <p>Returns a list of unicode code points corresponding to the text
           representation of <c><anno>Atom</anno></c>, for example:</p>
         <pre>
 > <input>atom_to_list('Erlang').</input>
 "Erlang"</pre>
+        <pre>
+> <input>atom_to_list('你好').</input>
+[20320,22909]</pre>
+      <p>See <seeerl
+      marker="stdlib:unicode"><c>unicode(3)</c></seeerl> for how to
+      convert the resulting list to different formats.</p>
       </desc>
     </func>
 
-- 
2.26.2

openSUSE Build Service is sponsored by