[libc-commits] [libc] [libc][NFC] Fix typo in file.cpp (#91192) (PR #187688)
via libc-commits
libc-commits at lists.llvm.org
Fri Mar 20 05:19:41 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Jeff Bailey (kaladron)
<details>
<summary>Changes</summary>
Corrected language and spelling errors in a comment within file.cpp.
Credit GH user @<!-- -->iBlanket for identifying this typo.
---
Full diff: https://github.com/llvm/llvm-project/pull/187688.diff
1 Files Affected:
- (modified) libc/src/__support/File/file.cpp (+1-1)
``````````diff
diff --git a/libc/src/__support/File/file.cpp b/libc/src/__support/File/file.cpp
index ccc7acf9387f5..07af685f99663 100644
--- a/libc/src/__support/File/file.cpp
+++ b/libc/src/__support/File/file.cpp
@@ -392,7 +392,7 @@ int File::set_buffer(void *buffer, size_t size, int buffer_mode) {
// We exclude the case of buffer_mode == _IONBF in this branch
// because we don't need to allocate buffer in such a case.
if (own_buf) {
- // This is one of the places where use a C allocation functon
+ // This is one of the places where a C allocation function is used
// as C++ does not have an equivalent of realloc.
buf = reinterpret_cast<uint8_t *>(realloc(buf, size));
if (buf == nullptr)
``````````
</details>
https://github.com/llvm/llvm-project/pull/187688
More information about the libc-commits
mailing list