[libc-commits] [libc] 2600c72 - [libc][NFC] Fix typo in file.cpp (#91192) (#187688)
via libc-commits
libc-commits at lists.llvm.org
Fri Mar 20 05:27:33 PDT 2026
Author: Jeff Bailey
Date: 2026-03-20T12:27:28Z
New Revision: 2600c723e1011a3e17463b56ab8ee2fce2a97d9a
URL: https://github.com/llvm/llvm-project/commit/2600c723e1011a3e17463b56ab8ee2fce2a97d9a
DIFF: https://github.com/llvm/llvm-project/commit/2600c723e1011a3e17463b56ab8ee2fce2a97d9a.diff
LOG: [libc][NFC] Fix typo in file.cpp (#91192) (#187688)
Corrected language and spelling errors in a comment within file.cpp.
Credit GH user @iBlanket for identifying this typo.
Added:
Modified:
libc/src/__support/File/file.cpp
Removed:
################################################################################
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)
More information about the libc-commits
mailing list