File 4981-Group-alias-functions-in-gb_sets-documentation.patch of Package erlang
From 122883cbba016bdcc4d79c57c83a694cb0cf7d52 Mon Sep 17 00:00:00 2001
From: Maria Scott <maria-12648430@hnc-agency.org>
Date: Thu, 17 Aug 2023 17:06:02 +0200
Subject: [PATCH] Group alias functions in gb_sets documentation
---
lib/stdlib/doc/src/gb_sets.xml | 32 +++-----------------------------
1 file changed, 3 insertions(+), 29 deletions(-)
diff --git a/lib/stdlib/doc/src/gb_sets.xml b/lib/stdlib/doc/src/gb_sets.xml
index d8271f9608..41443f7b04 100644
--- a/lib/stdlib/doc/src/gb_sets.xml
+++ b/lib/stdlib/doc/src/gb_sets.xml
@@ -120,6 +120,7 @@
<func>
<name name="del_element" arity="2" since=""/>
+ <name name="delete_any" arity="2" since=""/>
<fsummary>Remove a (possibly non-existing) element from a set.</fsummary>
<desc>
<p>Returns a new set formed from <c><anno>Set1</anno></c> with
@@ -140,19 +141,9 @@
</desc>
</func>
- <func>
- <name name="delete_any" arity="2" since=""/>
- <fsummary>Remove a (possibly non-existing) element from a set.</fsummary>
- <desc>
- <p>Returns a new set formed from <c><anno>Set1</anno></c> with
- <c><anno>Element</anno></c> removed. If <c><anno>Element</anno></c>
- is not an element
- in <c><anno>Set1</anno></c>, nothing is changed.</p>
- </desc>
- </func>
-
<func>
<name name="difference" arity="2" since=""/>
+ <name name="subtract" arity="2" since=""/>
<fsummary>Return the difference of two sets.</fsummary>
<desc>
<p>Returns only the elements of <c><anno>Set1</anno></c> that are not
@@ -254,6 +245,7 @@
<func>
<name name="is_element" arity="2" since=""/>
+ <name name="is_member" arity="2" since=""/>
<fsummary>Test for membership of a set.</fsummary>
<desc>
<p>Returns <c>true</c> if <c><anno>Element</anno></c> is an element of
@@ -281,15 +273,6 @@
</desc>
</func>
- <func>
- <name name="is_member" arity="2" since=""/>
- <fsummary>Test for membership of a set.</fsummary>
- <desc>
- <p>Returns <c>true</c> if <c><anno>Element</anno></c> is an element of
- <c><anno>Set</anno></c>, otherwise <c>false</c>.</p>
- </desc>
- </func>
-
<func>
<name name="is_set" arity="1" since=""/>
<fsummary>Test for a set.</fsummary>
@@ -411,15 +394,6 @@
</desc>
</func>
- <func>
- <name name="subtract" arity="2" since=""/>
- <fsummary>Return the difference of two sets.</fsummary>
- <desc>
- <p>Returns only the elements of <c><anno>Set1</anno></c> that are not
- also elements of <c><anno>Set2</anno></c>.</p>
- </desc>
- </func>
-
<func>
<name name="take_largest" arity="1" since=""/>
<fsummary>Extract largest element.</fsummary>
--
2.35.3