Skip to content

Commit 65142cb

Browse files
Fix incorrect statements about empty sets in IsProperSubsetOf and other set types
Co-authored-by: PranavSenthilnathan <[email protected]>
1 parent aa6f582 commit 65142cb

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

xml/System.Collections.Generic/HashSet`1.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,7 @@ The following example demonstrates how to merge two disparate sets. This example
15941594
<format type="text/markdown"><![CDATA[
15951595
15961596
## Remarks
1597-
An empty set is a proper subset of any other collection. Therefore, this method returns `true` if the collection represented by the current <xref:System.Collections.Generic.HashSet%601> object is empty unless the `other` parameter is also an empty set.
1597+
An empty set is a subset of any other collection. Therefore, this method returns `true` if the collection represented by the current <xref:System.Collections.Generic.HashSet%601> object is empty unless the `other` parameter is also an empty set.
15981598
15991599
This method always returns `false` if <xref:System.Collections.Generic.HashSet%601.Count%2A> is greater than or equal to the number of elements in `other`.
16001600
@@ -1676,7 +1676,7 @@ The following example demonstrates how to merge two disparate sets. This example
16761676
<format type="text/markdown"><![CDATA[
16771677
16781678
## Remarks
1679-
An empty set is a proper superset of any other collection. Therefore, this method returns `true` if the collection represented by the `other` parameter is empty unless the current <xref:System.Collections.Generic.HashSet%601> collection is also empty.
1679+
An empty set is a subset of any other collection. Therefore, this method returns `true` if the collection represented by the `other` parameter is empty unless the current <xref:System.Collections.Generic.HashSet%601> collection is also empty.
16801680
16811681
This method always returns `false` if <xref:System.Collections.Generic.HashSet%601.Count%2A> is less than or equal to the number of elements in `other`.
16821682

xml/System.Collections.Generic/ISet`1.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285
## Remarks
286286
If the current set is a proper subset of `other`, `other` must have at least one element that the current set does not have.
287287
288-
An empty set is a proper subset of any other collection. Therefore, this method returns `true` if the current set is empty, unless the `other` parameter is also an empty set.
288+
An empty set is a subset of any other collection. Therefore, this method returns `true` if the current set is empty, unless the `other` parameter is also an empty set.
289289
290290
This method always returns `false` if the current set has more or the same number of elements than `other`.
291291
@@ -346,7 +346,7 @@
346346
## Remarks
347347
If the current set is a proper superset of `other`, the current set must have at least one element that `other` does not have.
348348
349-
An empty set is a proper superset of any other collection. Therefore, this method returns `true` if the collection represented by the `other` parameter is empty, unless the current set is also empty.
349+
An empty set is a subset of any other collection. Therefore, this method returns `true` if the collection represented by the `other` parameter is empty, unless the current set is also empty.
350350
351351
This method always returns `false` if the number of elements in the current set is less than or equal to the number of elements in `other`.
352352

xml/System.Collections.Generic/SortedSet`1.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@
13931393
<format type="text/markdown"><![CDATA[
13941394
13951395
## Remarks
1396-
An empty set is a proper subset of any other collection. Therefore, this method returns `true` if the collection represented by the current <xref:System.Collections.Generic.SortedSet%601> object is empty unless the `other` parameter is also an empty set.
1396+
An empty set is a subset of any other collection. Therefore, this method returns `true` if the collection represented by the current <xref:System.Collections.Generic.SortedSet%601> object is empty unless the `other` parameter is also an empty set.
13971397
13981398
This method always returns `false` if <xref:System.Collections.Generic.SortedSet%601.Count%2A> is greater than or equal to the number of elements in `other`.
13991399
@@ -1462,7 +1462,7 @@
14621462
<format type="text/markdown"><![CDATA[
14631463
14641464
## Remarks
1465-
An empty set is a proper superset of any other collection. Therefore, this method returns `true` if the collection represented by the `other` parameter is empty unless the current <xref:System.Collections.Generic.SortedSet%601> collection is also empty.
1465+
An empty set is a subset of any other collection. Therefore, this method returns `true` if the collection represented by the `other` parameter is empty unless the current <xref:System.Collections.Generic.SortedSet%601> collection is also empty.
14661466
14671467
This method always returns `false` if <xref:System.Collections.Generic.SortedSet%601.Count%2A> is less than or equal to the number of elements in `other`.
14681468

xml/System.Collections.Immutable/ImmutableSortedSet`1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ If you need to perform multiple operations on an immutable collection, to increa
624624
<format type="text/markdown"><![CDATA[
625625
626626
## Remarks
627-
An empty set is a proper subset of any other collection. Therefore, this method returns `true` if the current set is empty, unless the `other` collection is also empty.
627+
An empty set is a subset of any other collection. Therefore, this method returns `true` if the current set is empty, unless the `other` collection is also empty.
628628
629629
[System.Collections.Immutable NuGet package](https://www.nuget.org/packages/System.Collections.Immutable/)
630630

0 commit comments

Comments
 (0)