Skip to content

Commit b432a4b

Browse files
Update assert_single description for clarity (#9093)
Co-authored-by: Scott Trinh <scott@scotttrinh.com>
1 parent 3788818 commit b432a4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/stdlib/set.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ Sets
544544
545545
.. index:: cardinality, singleton
546546

547-
Checks that the input set contains no more than one element.
547+
Checks that the input set has exactly zero or one elements.
548548

549549
If the input set contains more than one element, ``assert_single`` raises
550550
a ``CardinalityViolationError``. Otherwise, this function returns the

0 commit comments

Comments
 (0)