[libc-commits] [libc] [libc][docs] Small typos i guess (PR #196066)

via libc-commits libc-commits at lists.llvm.org
Wed May 6 06:03:22 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Kiriti Ponduri  (udaykiriti)

<details>
<summary>Changes</summary>

  - i dont know is it intentional or not.

---
Full diff: https://github.com/llvm/llvm-project/pull/196066.diff


2 Files Affected:

- (modified) libc/docs/dev/undefined_behavior.rst (+1-1) 
- (modified) libc/docs/gpu/using.rst (+1-1) 


``````````diff
diff --git a/libc/docs/dev/undefined_behavior.rst b/libc/docs/dev/undefined_behavior.rst
index c777e5c371a65..b2f8805421292 100644
--- a/libc/docs/dev/undefined_behavior.rst
+++ b/libc/docs/dev/undefined_behavior.rst
@@ -89,7 +89,7 @@ direction in this case.
 
 Non-const Constant Return Values
 --------------------------------
-Some libc functions, like ``dlerror()``, return ``char *`` instead of ``const char *`` and then tell the caller they promise not to to modify this value. Any modification of this value is undefined behavior.
+Some libc functions, like ``dlerror()``, return ``char *`` instead of ``const char *`` and then tell the caller they promise not to modify this value. Any modification of this value is undefined behavior.
 
 Unrecognized ``clockid_t`` values for ``pthread_rwlock_clock*`` APIs
 ----------------------------------------------------------------------
diff --git a/libc/docs/gpu/using.rst b/libc/docs/gpu/using.rst
index 14220e499e80d..856bdea170a9a 100644
--- a/libc/docs/gpu/using.rst
+++ b/libc/docs/gpu/using.rst
@@ -30,7 +30,7 @@ described in the `clang documentation
 by the OpenMP toolchain, but is currently opt-in for the CUDA and HIP toolchains
 through the ``--offload-new-driver``` and ``-fgpu-rdc`` flags.
 
-In order or link the GPU runtime, we simply pass this library to the embedded
+In order to link the GPU runtime, we simply pass this library to the embedded
 device linker job. This can be done using the ``-Xoffload-linker`` option, which
 forwards an argument to a ``clang`` job used to create the final GPU executable.
 The toolchain should pick up the C libraries automatically in most cases, so

``````````

</details>


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


More information about the libc-commits mailing list