diff --git a/src/java.base/share/classes/java/nio/file/Files.java b/src/java.base/share/classes/java/nio/file/Files.java
index 98efa051d11..9c1f92614fa 100644
--- a/src/java.base/share/classes/java/nio/file/Files.java
+++ b/src/java.base/share/classes/java/nio/file/Files.java
@@ -1552,7 +1552,7 @@ public final class Files {
*
* - The two paths locate the {@linkplain #isSameFile(Path, Path) same file},
* even if two {@linkplain Path#equals(Object) equal} paths locate a file
- * does not exist, or
+ * that does not exist, or
* - The two files are the same size, and every byte in the first file
* is identical to the corresponding byte in the second file.
*
@@ -1561,7 +1561,7 @@ public final class Files {
* returned by this method is:
*
* - The position of the first mismatched byte, or
- * - The size of the smaller file (in bytes) when the files are different
+ *
- The size of the smaller file (in bytes) when the files are of different
* sizes and every byte of the smaller file is identical to the
* corresponding byte of the larger file.
*