File 2991-Improve-documentation-of-sets-ordsets-gb_sets-subtra.patch of Package erlang
From 9dbb20868e42ad72f48b57cc27bdb3a143f16496 Mon Sep 17 00:00:00 2001
From: Maria Scott <maria-12648430@hnc-agency.org>
Date: Thu, 20 Nov 2025 15:36:45 +0100
Subject: [PATCH] Improve documentation of sets/ordsets/gb_sets:subtract/2
---
lib/stdlib/src/gb_sets.erl | 3 ++-
lib/stdlib/src/ordsets.erl | 3 ++-
lib/stdlib/src/sets.erl | 3 ++-
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/lib/stdlib/doc/src/gb_sets.xml b/lib/stdlib/doc/src/gb_sets.xml
index 296c9ed878..70c88d34c2 100644
--- a/lib/stdlib/doc/src/gb_sets.xml
+++ b/lib/stdlib/doc/src/gb_sets.xml
@@ -146,8 +146,8 @@
<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>
+ <p>Returns a new set containing the elements of <c>Set1</c>
+ that are not elements in <c>Set2</c>.</p>
</desc>
</func>
diff --git a/lib/stdlib/doc/src/ordsets.xml b/lib/stdlib/doc/src/ordsets.xml
index 9ca0573415..561221d794 100644
--- a/lib/stdlib/doc/src/ordsets.xml
+++ b/lib/stdlib/doc/src/ordsets.xml
@@ -225,8 +225,8 @@
<name name="subtract" arity="2" since=""/>
<fsummary>Return the difference of two <c>Ordsets</c>.</fsummary>
<desc>
- <p>Returns only the elements of <c><anno>Ordset1</anno></c> that are not
- also elements of <c><anno>Ordset2</anno></c>.</p>
+ <p>Returns a new ordered set containing the elements of <c><anno>Ordset1</anno></c>
+ that are not elements in <c><anno>Ordset2</anno></c>.</p>
</desc>
</func>
diff --git a/lib/stdlib/doc/src/sets.xml b/lib/stdlib/doc/src/sets.xml
index 56c22a370f..7621a5b008 100644
--- a/lib/stdlib/doc/src/sets.xml
+++ b/lib/stdlib/doc/src/sets.xml
@@ -330,8 +330,8 @@ true</pre>
<name name="subtract" arity="2" since=""/>
<fsummary>Return the difference of two <c>Sets</c>.</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>
+ <p>Returns a new set containing the elements of <c><anno>Set1</anno></c>
+ that are not elements in <c><anno>Set2</anno></c>.</p>
</desc>
</func>
--
2.51.0