diff --git a/core/lib/Drupal/Component/Utility/NestedArray.php b/core/lib/Drupal/Component/Utility/NestedArray.php
index 86c73099ebd9b6c4fd09f5f910207808d7218da8..0521c0d59701b9224849218f88167aae27b5feb9 100644
--- a/core/lib/Drupal/Component/Utility/NestedArray.php
+++ b/core/lib/Drupal/Component/Utility/NestedArray.php
@@ -194,7 +194,7 @@ public static function setValue(array &$array, array $parents, $value, $force =
    *
    * Instead, use this helper function:
    * @code
-   * NestedArray::unset_nested_value($form, $parents, $element);
+   * NestedArray::unsetValue($form, $parents, $element);
    * @endcode
    *
    * However if the number of array parent keys is static, the value should