diff --git a/core/modules/menu_link/lib/Drupal/menu_link/MenuTree.php b/core/modules/menu_link/lib/Drupal/menu_link/MenuTree.php
index ecf756a556d19e9c752b9c618c0a54143b851964..f12cae888d389fe9f5aaca8972f6c1317ddb5c8e 100644
--- a/core/modules/menu_link/lib/Drupal/menu_link/MenuTree.php
+++ b/core/modules/menu_link/lib/Drupal/menu_link/MenuTree.php
@@ -424,7 +424,7 @@ public function buildTree($menu_name, array $parameters = array()) {
    *
    * This function may be used build the data for a menu tree only, for example
    * to further massage the data manually before further processing happens.
-   * menu_tree_check_access() needs to be invoked afterwards.
+   * MenuTree::checkAccess() needs to be invoked afterwards.
    *
    * @param string $menu_name
    *   The name of the menu.