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

via libc-commits libc-commits at lists.llvm.org
Mon May 6 04:55:18 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Joshua (iBlanket)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/91192.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 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)

``````````

</details>


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


More information about the libc-commits mailing list