[libc-commits] [libc] [libc][obvious] Fixed typos in some wchar headers (PR #146413)

via libc-commits libc-commits at lists.llvm.org
Mon Jun 30 12:54:17 PDT 2025


https://github.com/sribee8 created https://github.com/llvm/llvm-project/pull/146413

Some of the wchar headers had typos in them.

>From 7b66d0e951457c0fac8602215de963fda6dab133 Mon Sep 17 00:00:00 2001
From: Sriya Pratipati <sriyap at google.com>
Date: Mon, 30 Jun 2025 19:53:22 +0000
Subject: [PATCH] [libc][obvious] Fixed typos in some wchar headers

Some of the wchar headers had typos in them.
---
 libc/src/wchar/wcpncpy.h | 2 +-
 libc/src/wchar/wcsspn.h  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libc/src/wchar/wcpncpy.h b/libc/src/wchar/wcpncpy.h
index d817239d2d0b1..1f67cd46f7753 100644
--- a/libc/src/wchar/wcpncpy.h
+++ b/libc/src/wchar/wcpncpy.h
@@ -20,4 +20,4 @@ wchar_t *wcpncpy(wchar_t *__restrict ws1, const wchar_t *__restrict ws2,
 
 } // namespace LIBC_NAMESPACE_DECL
 
-#endif // LLVM_LIBC_SRC_WCHAR_WCPNsCPY_H
+#endif // LLVM_LIBC_SRC_WCHAR_WCPNCPY_H
diff --git a/libc/src/wchar/wcsspn.h b/libc/src/wchar/wcsspn.h
index 6dbe65d9a4a98..6e21cbe594574 100644
--- a/libc/src/wchar/wcsspn.h
+++ b/libc/src/wchar/wcsspn.h
@@ -19,4 +19,4 @@ size_t wcsspn(const wchar_t *s1, const wchar_t *s2);
 
 } // namespace LIBC_NAMESPACE_DECL
 
-#endif // LLVM_LIBC_SRC_WCHAR_WCSCHR_H
+#endif // LLVM_LIBC_SRC_WCHAR_WCSSPN_H



More information about the libc-commits mailing list