Skip to content

Commit d7c0af7

Browse files
committed
docs: improve description
1 parent bc432c7 commit d7c0af7

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
@@ -609,7 +609,7 @@ a boolean true or false value signifying true if it passed the test or false if
609609
.. literalinclude:: validation/034.php
610610

611611
By default, the system will look within ``CodeIgniter\Language\en\Validation.php`` for the language strings used
612-
within errors. In custom rules, you may provide error messages by accepting a ``$error`` variable by reference in the
612+
within errors. In custom rules, you may provide error messages by accepting a ``&$error`` variable by reference in the
613613
second parameter:
614614

615615
.. literalinclude:: validation/035.php
@@ -630,7 +630,7 @@ for rules like ``required_with`` that needs to check the value of another submit
630630

631631
.. literalinclude:: validation/037.php
632632

633-
Custom errors can be returned as the fourth parameter, just as described above.
633+
Custom errors can be returned as the fourth parameter ``&$error``, just as described above.
634634

635635
.. _validation-using-closure-rule:
636636

0 commit comments

Comments
 (0)