diff --git a/core/includes/entity.api.php b/core/includes/entity.api.php
index fbf6271..81b238b 100644
--- a/core/includes/entity.api.php
+++ b/core/includes/entity.api.php
@@ -290,7 +290,7 @@ function hook_entity_view_mode_alter(&$view_mode, Drupal\Core\Entity\EntityInter
  *   - bundle: The bundle, e.g., 'page' or 'article'.
  *   - view_mode: The view mode, e.g. 'full', 'teaser'...
  */
-function hook_entity_display_alter(Drupal\field\Plugin\Core\Entity\EntityDisplay $display, array $context) {
+function hook_entity_display_alter(Drupal\entity\Plugin\Core\Entity\EntityDisplay $display, array $context) {
   // Leave field labels out of the search index.
   if ($context['entity_type'] == 'node' && $context['view_mode'] == 'search_index') {
     foreach ($display->content as $name => &$properties) {
diff --git a/core/includes/entity.inc b/core/includes/entity.inc
index d4ca7a5..ea17846 100644
--- a/core/includes/entity.inc
+++ b/core/includes/entity.inc
@@ -581,7 +581,7 @@ function entity_view_multiple(array $entities, $view_mode, $langcode = NULL) {
  * - Set the 'body' field to be displayed and the 'field_image' field to be
  *   hidden on article nodes in the 'default' display.
  * @code
- * entity_get_display('article', 'node', 'default')
+ * entity_get_display('node', 'article', 'default')
  *   ->setComponent('body', array(
  *     'type' => 'text_summary_or_trimmed',
  *     'settings' => array('trim_length' => '200')
