diff --git a/core/includes/file.inc b/core/includes/file.inc
index 6536789cabf5ab8a2ad7280069195ad9f9e7de9b..028df9cd60e2a9a6b545da664ee2f26e78714bd0 100644
--- a/core/includes/file.inc
+++ b/core/includes/file.inc
@@ -601,7 +601,7 @@ function file_valid_uri($uri) {
  * - If file already exists in $destination either the call will error out,
  *   replace the file or rename the file based on the $replace parameter.
  * - If the $source and $destination are equal, the behavior depends on the
- *   $replace parameter. FILE_EXIST_REPLACE will error out. FILE_EXIST_RENAME
+ *   $replace parameter. FILE_EXISTS_REPLACE will error out. FILE_EXISTS_RENAME
  *   will rename the file until the $destination is unique.
  * - Provides a fallback using realpaths if the move fails using stream
  *   wrappers. This can occur because PHP's copy() function does not properly
diff --git a/core/modules/file/file.module b/core/modules/file/file.module
index bf67993407fc34de4bbde48493205bfef8b3f63f..9bc1d858684572df262241da751310ad62021763 100644
--- a/core/modules/file/file.module
+++ b/core/modules/file/file.module
@@ -137,7 +137,7 @@ function file_usage() {
  * - If file already exists in $destination either the call will error out,
  *   replace the file or rename the file based on the $replace parameter.
  * - If the $source and $destination are equal, the behavior depends on the
- *   $replace parameter. FILE_EXIST_REPLACE will error out. FILE_EXIST_RENAME
+ *   $replace parameter. FILE_EXISTS_REPLACE will error out. FILE_EXISTS_RENAME
  *   will rename the file until the $destination is unique.
  * - Adds the new file to the files database. If the source file is a
  *   temporary file, the resulting file will also be a temporary file. See