[libc-commits] [libc] [libc][docs] Small typos i guess (PR #196066)
Kiriti Ponduri via libc-commits
libc-commits at lists.llvm.org
Thu May 7 00:02:59 PDT 2026
https://github.com/udaykiriti updated https://github.com/llvm/llvm-project/pull/196066
>From 7b8970703d52055f822b2ee6500d1c1ae134b3dd Mon Sep 17 00:00:00 2001
From: udaykiriti <udaykiriti624 at gmail.com>
Date: Wed, 6 May 2026 18:30:37 +0530
Subject: [PATCH] [libc][docs] Minor typos in Documentation.
- 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>
---
libc/docs/dev/undefined_behavior.rst | 2 +-
libc/docs/gpu/using.rst | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
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