diff --git a/core/lib/Drupal/Core/Mail/MailManagerInterface.php b/core/lib/Drupal/Core/Mail/MailManagerInterface.php
index 35f1fd5..8618dc3 100644
--- a/core/lib/Drupal/Core/Mail/MailManagerInterface.php
+++ b/core/lib/Drupal/Core/Mail/MailManagerInterface.php
@@ -23,7 +23,7 @@
    *
    * Finding out what language to send the email with needs some consideration.
    * If you send email to a user, her preferred language should be fine, so use
-   * user_preferred_langcode(). If you send email based on form values filled on
+   * \Drupal\Core\Session\AccountInterface::getPreferredAdminLangcode(). If you send email based on form values filled on
    * the page, there are two additional choices if you are not sending the email
    * to a user on the site. You can either use the language used to generate the
    * page or the site default language. See
@@ -46,7 +46,7 @@
    *       $params['account'] = $account;
    *       // example_mail() will be called based on the first
    *       // MailManagerInterface->mail() parameter.
-   *       \Drupal::service('plugin.manager.mail')->mail('example', 'notice', $account->mail, user_preferred_langcode($account), $params);
+   *       \Drupal::service('plugin.manager.mail')->mail('example', 'notice', $account->mail, $langcode, $params);
    *     }
    *   }
    *
