[libc-commits] [libc] 7b2f83a - [libc][docs] Minor typos in Documentation (#196066)

via libc-commits libc-commits at lists.llvm.org
Thu May 7 00:14:19 PDT 2026


Author: Kiriti Ponduri
Date: 2026-05-07T08:14:14+01:00
New Revision: 7b2f83a2ddeac2b499e273be1783a97815b5a364

URL: https://github.com/llvm/llvm-project/commit/7b2f83a2ddeac2b499e273be1783a97815b5a364
DIFF: https://github.com/llvm/llvm-project/commit/7b2f83a2ddeac2b499e273be1783a97815b5a364.diff

LOG: [libc][docs] Minor typos in Documentation (#196066)

  - removed a duplicate "to" in dev/undefinde_behaviour.rst
  - corrected "in order or link" to "inorder to link" in gpu/using.rst

Signed-off-by: udaykiriti <udaykiriti624 at gmail.com>

Added: 
    

Modified: 
    libc/docs/dev/undefined_behavior.rst
    libc/docs/gpu/using.rst

Removed: 
    


################################################################################
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


        


More information about the libc-commits mailing list