[libcxx-commits] [libcxx] [libcxx] Fix a comment link for the unicode NBSP char. NFC. (PR #139692)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue May 13 02:01:22 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: Martin Storsjö (mstorsjo)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/139692.diff


1 Files Affected:

- (modified) libcxx/src/locale.cpp (+1-1) 


``````````diff
diff --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp
index 9ea59a3a19ca4..b3ec28950008a 100644
--- a/libcxx/src/locale.cpp
+++ b/libcxx/src/locale.cpp
@@ -3957,7 +3957,7 @@ static bool is_narrow_non_breaking_space(const char* ptr) {
 }
 
 static bool is_non_breaking_space(const char* ptr) {
-  // https://www.fileformat.info/info/unicode/char/0a/index.htm
+  // https://www.fileformat.info/info/unicode/char/a0/index.htm
   return ptr[0] == '\xc2' && ptr[1] == '\xa0';
 }
 #endif // _LIBCPP_HAS_WIDE_CHARACTERS

``````````

</details>


https://github.com/llvm/llvm-project/pull/139692


More information about the libcxx-commits mailing list