summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide_src/source/libraries')
-rw-r--r--user_guide_src/source/libraries/form_validation.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/user_guide_src/source/libraries/form_validation.rst b/user_guide_src/source/libraries/form_validation.rst
index 29e1be032..bc922e69b 100644
--- a/user_guide_src/source/libraries/form_validation.rst
+++ b/user_guide_src/source/libraries/form_validation.rst
@@ -489,11 +489,13 @@ the name of the function::
$this->form_validation->set_message('username_check')
If you are using an error message that can accept two $s in your error string,
-such as ..
+such as:
+::
$this->form_validation->set_message('min_length', 'The $s field must contain at least $s characters.');
Then you can also use %1$s and %2$s:
+::
$this->form_validation->set_message('min_length', 'This field must contain at least %2$s characters.');