Fix typo in example error message (#206)
The error message on line 311 said "y must be... when it was supposed to be "x must be...
This commit is contained in:
parent
24815d7a78
commit
1c0549ce27
|
@ -308,7 +308,7 @@ If the value does not pass the validator's standards, it just raises an appropri
|
|||
... @x.validator
|
||||
... def check(self, attribute, value):
|
||||
... if value > 42:
|
||||
... raise ValueError("y must be smaller or equal to 42")
|
||||
... raise ValueError("x must be smaller or equal to 42")
|
||||
>>> C(42)
|
||||
C(x=42)
|
||||
>>> C(43)
|
||||
|
|
Loading…
Reference in New Issue