summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2019-08-13 23:24:23 +0200
committerIlya Etingof <etingof@gmail.com>2019-08-13 23:24:23 +0200
commitec580e545ef25f117573014d40ca5c512e58dbf3 (patch)
treedad8502fede106be240e929ac1bd40e0e79c179e
parentd87d4dbf78d5669ab668a57ae94b7732dd1314e6 (diff)
downloadpyasn1-git-ec580e545ef25f117573014d40ca5c512e58dbf3.tar.gz
Fix ConstraintsUnion docstring
-rw-r--r--pyasn1/type/constraint.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyasn1/type/constraint.py b/pyasn1/type/constraint.py
index 807c827..75db38a 100644
--- a/pyasn1/type/constraint.py
+++ b/pyasn1/type/constraint.py
@@ -501,8 +501,8 @@ class ConstraintsIntersection(AbstractConstraintSet):
class ConstraintsUnion(AbstractConstraintSet):
"""Create a ConstraintsUnion logic operator object.
- The ConstraintsUnion logic operator only succeeds if
- *at least a single* operand succeeds.
+ The ConstraintsUnion logic operator succeeds if
+ *at least* a single operand succeeds.
The ConstraintsUnion object can be applied to
any constraint and logic operator objects.
@@ -526,7 +526,7 @@ class ConstraintsUnion(AbstractConstraintSet):
CapitalOrSmall ::=
IA5String (FROM ("A".."Z") | FROM ("a".."z"))
'''
- subtypeSpec = ConstraintsIntersection(
+ subtypeSpec = ConstraintsUnion(
PermittedAlphabetConstraint('A', 'Z'),
PermittedAlphabetConstraint('a', 'z')
)