Fix comment for File.Exists (#85648)
authorSiqi Lu <lu.siqi@outlook.com>
Tue, 9 May 2023 14:05:13 +0000 (14:05 +0000)
committerGitHub <noreply@github.com>
Tue, 9 May 2023 14:05:13 +0000 (16:05 +0200)
src/libraries/System.Private.CoreLib/src/System/IO/File.cs

index 45b2a91..ca68bb7 100644 (file)
@@ -88,7 +88,7 @@ namespace System.IO
         // Tests whether a file exists. The result is true if the file
         // given by the specified path exists; otherwise, the result is
         // false.  Note that if path describes a directory,
-        // Exists will return true.
+        // Exists will return false.
         public static bool Exists([NotNullWhen(true)] string? path)
         {
             try