[libc-commits] [libc] Fix spelling mistake in file.cpp (PR #91192)

via libc-commits libc-commits at lists.llvm.org
Mon May 6 12:20:29 PDT 2024


https://github.com/iBlanket updated https://github.com/llvm/llvm-project/pull/91192

>From 4a3b97f5e78e5e0762990b718e56c96b29bc2df0 Mon Sep 17 00:00:00 2001
From: Joshua <fuckblanket at protonmail.com>
Date: Mon, 6 May 2024 07:53:06 -0400
Subject: [PATCH] Fix spelling mistake in file.cpp

---
 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 58097d017a23f3..0f60a65314f1c5 100644
--- a/libc/src/__support/File/file.cpp
+++ b/libc/src/__support/File/file.cpp
@@ -356,7 +356,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 functon 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