diff --git a/core/includes/ajax.inc b/core/includes/ajax.inc
index f0dca7413161b9f25f0ce799f28d012f7049010c..a7fbe7bb124f5334fd8fa9a5ca4138faf2c15fc6 100644
--- a/core/includes/ajax.inc
+++ b/core/includes/ajax.inc
@@ -251,8 +251,8 @@ function ajax_render($commands = array()) {
       //   reliably diffed with array_diff_key(), since the number can change
       //   due to factors unrelated to the inline content, so for now, we strip
       //   the inline items from Ajax responses, and can add support for them
-      //   when drupal_add_css() and drupal_add_js() are changed to using md5()
-      //   or some other hash of the inline content.
+      //   when drupal_add_css() and drupal_add_js() are changed to use a hash
+      //   of the inline content as the array key.
       foreach ($items[$type] as $key => $item) {
         if (is_numeric($key)) {
           unset($items[$type][$key]);
diff --git a/core/lib/Drupal/Core/Ajax/AjaxResponse.php b/core/lib/Drupal/Core/Ajax/AjaxResponse.php
index 516325b9045ad3894946cd90836a97fd108ceb71..d87c4a6255695ce1128665e6d3d4317744957cf8 100644
--- a/core/lib/Drupal/Core/Ajax/AjaxResponse.php
+++ b/core/lib/Drupal/Core/Ajax/AjaxResponse.php
@@ -93,8 +93,8 @@ protected function ajaxRender(Request $request) {
         //   reliably diffed with array_diff_key(), since the number can change
         //   due to factors unrelated to the inline content, so for now, we
         //   strip the inline items from Ajax responses, and can add support for
-        //   them when drupal_add_css() and drupal_add_js() are changed to using
-        //   md5() or some other hash of the inline content.
+        //   them when drupal_add_css() and drupal_add_js() are changed to use
+        //   a hash of the inline content as the array key.
         foreach ($items[$type] as $key => $item) {
           if (is_numeric($key)) {
             unset($items[$type][$key]);