File 0933-erts-Improve-ref-docs-of-atomics-counters-and-erlang.patch of Package erlang

From 6763ca7c1a36ff06888a8601af5bc9a010c5368b Mon Sep 17 00:00:00 2001
From: Sverker Eriksson <sverker@erlang.org>
Date: Thu, 11 Jun 2020 12:32:17 +0200
Subject: [PATCH] erts: Improve ref docs of atomics, counters and erlang

---
 erts/doc/src/atomics.xml  |  4 +++-
 erts/doc/src/counters.xml | 11 ++++++-----
 erts/doc/src/erlang.xml   | 18 +++++++++---------
 3 files changed, 18 insertions(+), 15 deletions(-)

diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml
index 67d7a07bae..ad9c107431 100644
--- a/erts/doc/src/erlang.xml
+++ b/erts/doc/src/erlang.xml
@@ -112,12 +112,12 @@
           <tag><c>microsecond</c></tag>
           <item>
             <p>Symbolic representation of the time unit
-              represented by the integer <c>1000000</c>.</p>
+              represented by the integer <c>1000_000</c>.</p>
           </item>
           <tag><c>nanosecond</c></tag>
           <item>
             <p>Symbolic representation of the time unit
-              represented by the integer <c>1000000000</c>.</p>
+              represented by the integer <c>1000_000_000</c>.</p>
           </item>
           <tag><c>native</c></tag>
           <item>
@@ -4486,7 +4486,7 @@ RealSystem = system + MissedSystem</code>
             driver of the port does not support this. For more
             information, see driver flag
             <seealso marker="driver_entry#driver_flags">
-            <c>![CDATA[ERL_DRV_FLAG_SOFT_BUSY]]</c></seealso>.
+            <c>ERL_DRV_FLAG_SOFT_BUSY</c></seealso>.
           </item>
           <tag><c>nosuspend</c></tag>
           <item>The calling process is not suspended if the port is
@@ -5689,7 +5689,7 @@ RealSystem = system + MissedSystem</code>
         <p>Removes old code for <c><anno>Module</anno></c>.
           Before this BIF is used,
           <seealso marker="#check_process_code/2">
-          <c>check_process_code/2</c></seealso>is to be called to check
+          <c>check_process_code/2</c></seealso> is to be called to check
           that no processes execute old code in the module.</p>
         <warning>
           <p>This BIF is intended for the code server (see
@@ -7772,7 +7772,7 @@ ok
             has been suspended
             more times by the calling process than can be represented by the
             currently used internal data structures. The system limit is
-            &gt; 2,000,000,000 suspends and will never be lower.
+            greater than 2 billion suspends and will never be lower.
           </item>
         </taglist>
       </desc>
@@ -10370,9 +10370,9 @@ hello
 <code type="none">
 timestamp() ->
     ErlangSystemTime = erlang:system_time(microsecond),
-    MegaSecs = ErlangSystemTime div 1000000000000,
-    Secs = ErlangSystemTime div 1000000 - MegaSecs*1000000,
-    MicroSecs = ErlangSystemTime rem 1000000,
+    MegaSecs = ErlangSystemTime div 1000_000_000_000,
+    Secs = ErlangSystemTime div 1000_000 - MegaSecs*1000_000,
+    MicroSecs = ErlangSystemTime rem 1000_000,
     {MegaSecs, Secs, MicroSecs}.</code>
         <p>It, however, uses a native implementation that does
           not build garbage on the heap and with slightly better
@@ -11905,7 +11905,7 @@ true</pre>
       <desc>
         <p>Voluntarily lets other processes (if any) get a chance to
           execute. Using this function is similar to
-          <c>receive after 1 -> ok end</c>, except that <c>yield()</c>
+          <c>receive after 1 -> true end</c>, except that <c>yield()</c>
           is faster.</p>
         <warning>
           <p>There is seldom or never any need to use this BIF,
-- 
2.26.2

openSUSE Build Service is sponsored by