[libc-commits] [libc] [libc][NFC] Fix typo in file.cpp (#91192) (PR #187688)

Jeff Bailey via libc-commits libc-commits at lists.llvm.org
Fri Mar 20 05:19:04 PDT 2026


https://github.com/kaladron created https://github.com/llvm/llvm-project/pull/187688

Corrected language and spelling errors in a comment within file.cpp.

Credit GH user @iBlanket for identifying this typo.

>From ec897db5f71654ecb498faa4f1693926ed68deda Mon Sep 17 00:00:00 2001
From: Jeff Bailey <jeffbailey at google.com>
Date: Fri, 20 Mar 2026 12:18:01 +0000
Subject: [PATCH] [libc][NFC] Fix typo in file.cpp (#91192)

Corrected language and spelling errors in a comment within file.cpp.

Credit GH user @iBlanket for identifying this typo.
---
 libc/src/__support/File/file.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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