From ec580e545ef25f117573014d40ca5c512e58dbf3 Mon Sep 17 00:00:00 2001 From: Ilya Etingof Date: Tue, 13 Aug 2019 23:24:23 +0200 Subject: Fix ConstraintsUnion docstring --- pyasn1/type/constraint.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pyasn1') 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') ) -- cgit v1.2.1