summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries/form_validation.rst
diff options
context:
space:
mode:
authorvlakoff <vlakoff@gmail.com>2013-01-09 18:10:20 +0100
committervlakoff <vlakoff@gmail.com>2013-01-09 18:10:20 +0100
commit024cfeceedc17fc8442b2bca9dfc73c361dfaac3 (patch)
tree974629650a72ced92e44bb5bcee591b791b9ebc0 /user_guide_src/source/libraries/form_validation.rst
parent85adeed0ab67bcde7b5c57ddb44022c75e82078a (diff)
Syntax fixes in documentation source
Diffstat (limited to 'user_guide_src/source/libraries/form_validation.rst')
-rw-r--r--user_guide_src/source/libraries/form_validation.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/user_guide_src/source/libraries/form_validation.rst b/user_guide_src/source/libraries/form_validation.rst
index ce1695d62..ae7859aa3 100644
--- a/user_guide_src/source/libraries/form_validation.rst
+++ b/user_guide_src/source/libraries/form_validation.rst
@@ -479,7 +479,7 @@ Message is the text you would like displayed.
If you'd like to include a field's "human" name, or the optional
parameter some rules allow for (such as max_length), you can add the
-**{field}** and **{param}** tags to your message, respectively.
+**{field}** and **{param}** tags to your message, respectively::
$this->form_validation->set_message('min_length', '{field} must have at least {param} characters.');
@@ -491,7 +491,7 @@ error would display: "Username must have at least 5 characters."
use one or the other.
In the callback rule example above, the error message was set by passing
-the name of the method (without the "callback_" prefix)::
+the name of the method (without the "callback\_" prefix)::
$this->form_validation->set_message('username_check')