Skip to content

Commit 585d3ca

Browse files
authored
Merge pull request #5956 from kenjis/fix-docs-validation.rst
docs: small fix in validation.rst
2 parents c815e7f + 04730e0 commit 585d3ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

user_guide_src/source/libraries/validation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ Or as a labeled style:
412412
.. literalinclude:: validation/024.php
413413

414414
If you'd like to include a field's "human" name, or the optional parameter some rules allow for (such as max_length),
415-
or the value that was validated you can add the ``{field}``, ``{param}`` and ``{value}`` tags to your message, respectively:
415+
or the value that was validated you can add the ``{field}``, ``{param}`` and ``{value}`` tags to your message, respectively::
416416

417417
'min_length' => 'Supplied value ({value}) for {field} must have at least {param} characters.'
418418

@@ -458,7 +458,7 @@ When using a wildcard, the error will point to a specific field, replacing the a
458458
]
459459

460460
// rule
461-
contacts.*.name => 'required'
461+
'contacts.*.name' => 'required'
462462

463463
// error will be
464464
'contacts.friends.1.name' => 'The contacts.*.name field is required.'

0 commit comments

Comments
 (0)