diff --git a/core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php
index ef4d4cf8a7ababe234bf2ea7badbb5168bcfe6c6..03f26918dab2d1106a21fa18aa0a638be3f27903 100644
--- a/core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php
@@ -53,7 +53,7 @@ class DefaultExceptionSubscriber implements EventSubscriberInterface {
   protected $bareHtmlPageRenderer;
 
   /**
-   * Constructs a new DefaultExceptionHtmlSubscriber.
+   * Constructs a new DefaultExceptionSubscriber.
    *
    * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
    *   The configuration factory.
diff --git a/core/lib/Drupal/Core/EventSubscriber/Fast404ExceptionHtmlSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/Fast404ExceptionHtmlSubscriber.php
index c5d18dbeb2f465939693863950574e7d016eeaac..0e64f94c89536465775ef105ab1e9584d396a99e 100644
--- a/core/lib/Drupal/Core/EventSubscriber/Fast404ExceptionHtmlSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/Fast404ExceptionHtmlSubscriber.php
@@ -36,7 +36,7 @@ class Fast404ExceptionHtmlSubscriber extends HttpExceptionSubscriberBase {
   protected $configFactory;
 
   /**
-   * Constructs a new CustomPageExceptionHtmlSubscriber.
+   * Constructs a new Fast404ExceptionHtmlSubscriber.
    *
    * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
    *   The configuration factory.