From a33b81305889e45823b36b3c96cc8db97e5d3b41 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 12 Feb 2021 10:17:36 -0500 Subject: disk_interface: Improve wrapping of comment in RemoveFile --- src/disk_interface.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/disk_interface.cc b/src/disk_interface.cc index 8d4cc7f..4753201 100644 --- a/src/disk_interface.cc +++ b/src/disk_interface.cc @@ -272,9 +272,9 @@ int RealDiskInterface::RemoveFile(const string& path) { return 1; } if (attributes & FILE_ATTRIBUTE_READONLY) { - // On non-Windows systems remove will happily delete read-only files. On - // Windows Ninja should behave the same. See - // https://github.com/ninja-build/ninja/issues/1886 + // On non-Windows systems, remove() will happily delete read-only files. + // On Windows Ninja should behave the same: + // https://github.com/ninja-build/ninja/issues/1886 SetFileAttributes(path.c_str(), attributes & ~FILE_ATTRIBUTE_READONLY); } if (!DeleteFile(path.c_str())) { -- cgit v0.12