diff --git a/core/lib/Drupal/Core/Form/FormStateInterface.php b/core/lib/Drupal/Core/Form/FormStateInterface.php
index 26485a0..601b169 100644
--- a/core/lib/Drupal/Core/Form/FormStateInterface.php
+++ b/core/lib/Drupal/Core/Form/FormStateInterface.php
@@ -487,10 +487,12 @@ public static function hasAnyErrors();
    * skipped.
    *
    * @param string $name
-   *   The name of the form element. If the #parents property of your form
-   *   element is array('foo', 'bar', 'baz') then you may set an error on 'foo'
-   *   or 'foo][bar][baz'. Setting an error on 'foo' sets an error for every
-   *   element where the #parents array starts with 'foo'.
+   *   The name of the form element.
+   *   - If it is an empty string, the error will be set for the form.
+   *   - If the #parents property of your form element is
+   *     @code array('foo', 'bar', 'baz') @endcode then you may set an error on
+   *     'foo' or 'foo][bar][baz'. Setting an error on 'foo' sets an error for
+   *     every element where the #parents array starts with 'foo'.
    * @param string $message
    *   (optional) The error message to present to the user.
    *
