File 1017-erlang-module-doc-add-example-to-bitstring_to_list-1.patch of Package erlang

From 68ee2ef998168c4baa2e31b2442bb7248fb8ea84 Mon Sep 17 00:00:00 2001
From: Kjell Winblad <kjellwinblad@gmail.com>
Date: Mon, 31 Aug 2020 14:18:21 +0200
Subject: [PATCH 07/39] erlang module doc: add example to bitstring_to_list/1

---
 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 1f646867b1..a1d8e64ff2 100644
--- a/erts/doc/src/erlang.xml
+++ b/erts/doc/src/erlang.xml
@@ -723,7 +723,13 @@ hello
         <p>Returns a list of integers corresponding to the bytes of
           <c><anno>Bitstring</anno></c>. If the number of bits in the binary
           is not divisible by 8, the last element of the list is a bitstring
-          containing the remaining 1-7 bits.</p>
+        containing the remaining 1-7 bits. Examples:</p>
+                <pre>
+> <input>bitstring_to_list(&lt;&lt;433:16&gt;&gt;).</input>
+[1,177]</pre>
+                <pre>
+> <input>bitstring_to_list(&lt;&lt;433:16,3:3&gt;&gt;).</input>
+[1,177,&lt;&lt;3:3&gt;&gt;]</pre>
       </desc>
     </func>
 
-- 
2.26.2

openSUSE Build Service is sponsored by