From f02815ed424c766fd25be17c909fb6023bedd913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michae=CC=88l=20Perrin?= Date: Thu, 6 Jul 2017 23:21:24 +0200 Subject: [PATCH] Fix maxlength attribute for forms --- forms.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/forms.rst b/forms.rst index 41f078ccf0d..135c3ced6d9 100644 --- a/forms.rst +++ b/forms.rst @@ -568,10 +568,10 @@ the correct values of a number of field options. field ``nullable``). This is very useful, as your client-side validation will automatically match your validation rules. -``max_length`` - If the field is some sort of text field, then the ``max_length`` option can be - guessed from the validation constraints (if ``Length`` or ``Range`` is used) or - from the Doctrine metadata (via the field's length). +``maxlength`` + If the field is some sort of text field, then the ``maxlength`` option attribute + can be guessed from the validation constraints (if ``Length`` or ``Range`` is used) + or from the Doctrine metadata (via the field's length). .. caution::