fixed typo on labels method

This commit is contained in:
Andrew Smith 2013-05-13 13:18:16 +01:00
parent 4a14b0e13e
commit 366450a1e0

View File

@ -191,7 +191,7 @@ However we can use a array of labels to solve this issue by simply adding the `l
```php
$v = new Valitron\Validator(array());
$v->rule('required', array('name', 'email'))->message('{field} is required');
$v->rules(array(
$v->labels(array(
'name' => 'Name',
'email' => 'Email address'
));