]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix typo in comment in src/c++17/fs_dir.cc
authorJonathan Wakely <jwakely@redhat.com>
Thu, 12 Dec 2024 20:38:54 +0000 (20:38 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 9 Jan 2025 23:52:32 +0000 (23:52 +0000)
libstdc++-v3/ChangeLog:

* src/c++17/fs_dir.cc: Fix typo in comment.

(cherry picked from commit 93069606949f45cb5f60bc7f4efc4860c23c8e1c)

libstdc++-v3/src/c++17/fs_dir.cc

index 28d27f6a9fa12ab8dbf95a596eaaa83bbf0489f2..fa0f7281f369c43845183979ae7ff7dc5899a600 100644 (file)
@@ -479,7 +479,7 @@ fs::recursive_directory_iterator::__erase(error_code* ecptr)
 
 #if _GLIBCXX_FILESYSTEM_IS_WINDOWS
       // _Dir::unlink uses fs::remove which uses std::system_category() for
-      // Windows errror codes, so we can't just check for EPERM and EISDIR.
+      // Windows error codes, so we can't just check for EPERM and EISDIR.
       // Use directory_entry::refresh() here to check if we have a directory.
       // This can be a TOCTTOU race, but we don't have openat or unlinkat to
       // solve that on Windows, and generally don't support symlinks anyway.