diff --git a/core/modules/toolbar/toolbar.module b/core/modules/toolbar/toolbar.module
index a1def5da6892f41bace6b20c415597a7c8a9d087..963c708c9f9ef9e97bfdb64d9e8291c76ff71023 100644
--- a/core/modules/toolbar/toolbar.module
+++ b/core/modules/toolbar/toolbar.module
@@ -280,10 +280,10 @@ function toolbar_get_rendered_subtrees() {
 }
 
 /**
- * Returns the hash of the per-user rendered toolbar subtrees.
+ * Returns the hash of the user-rendered toolbar subtrees and cacheability.
  *
- * @return string
- *   The hash of the admin_menu subtrees.
+ * @return array
+ *   An array with the hash of the toolbar subtrees and cacheability.
  */
 function _toolbar_get_subtrees_hash() {
   [$subtrees, $cacheability] = toolbar_get_rendered_subtrees();