File 0329-erlang-module-doc-pid_to_list-1.patch of Package erlang
From 789ae7b55a651769711ef65c5d29711f2e487568 Mon Sep 17 00:00:00 2001
From: Kjell Winblad <kjellwinblad@gmail.com>
Date: Tue, 22 Sep 2020 13:27:13 +0200
Subject: [PATCH 29/39] erlang module doc: pid_to_list/1
* Add example
* Add info about that creation is not included
---
erts/doc/src/erlang.xml | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml
index bdc57b5b35..a16c12e034 100644
--- a/erts/doc/src/erlang.xml
+++ b/erts/doc/src/erlang.xml
@@ -4615,7 +4615,17 @@ RealSystem = system + MissedSystem</code>
<fsummary>Text representation of a pid.</fsummary>
<desc>
<p>Returns a string corresponding to the text
- representation of <c><anno>Pid</anno></c>.</p>
+ representation of <c><anno>Pid</anno></c>. Example:</p>
+ <pre>
+> <input>erlang:pid_to_list(self()).</input>
+"<0.85.0>"</pre>
+<note>
+ <p>The <seeguide marker="erl_dist_protocol">creation</seeguide> for
+ the node is not included in the list representation of
+ <c><anno>Pid</anno></c>. This means that processes in different
+ incarnations of a node with a specific name can get the same list
+ representation.</p>
+</note>
</desc>
</func>
--
2.26.2