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:
egregius313 2017-06-07 00:22:44 -04:00 committed by Hynek Schlawack
parent 24815d7a78
commit 1c0549ce27
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ If the value does not pass the validator's standards, it just raises an appropri
... @x.validator ... @x.validator
... def check(self, attribute, value): ... def check(self, attribute, value):
... if value > 42: ... 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(42)
C(x=42) C(x=42)
>>> C(43) >>> C(43)