Skip to content

Commit 62a6805

Browse files
committed
[book] [validation] Constraints can be applied to an entire class too
1 parent 9860554 commit 62a6805

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/validation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,8 @@ For information on translating the constraint messages, see
511511
Constraint Targets
512512
------------------
513513

514-
Constraints can be applied to a class property (e.g. ``name``) or a public
515-
getter method (e.g. ``getFullName``). The first is the most common and easy
514+
Constraints can be applied to a class property (e.g. ``name``), a public
515+
getter method (e.g. ``getFullName``) or an entire class. The first is the most common and easy
516516
to use, but the second allows you to specify more complex validation rules.
517517

518518
.. index::

0 commit comments

Comments
 (0)