From 1c0549ce27cff9b15ebebde274f10f75bd30f881 Mon Sep 17 00:00:00 2001 From: egregius313 Date: Wed, 7 Jun 2017 00:22:44 -0400 Subject: [PATCH] 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... --- docs/examples.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples.rst b/docs/examples.rst index 58f11b5b..6dc99e4b 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -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)