[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@gmail.com>
GitOrigin-RevId: 7b2f83a2ddeac2b499e273be1783a97815b5a364
diff --git a/docs/dev/undefined_behavior.rst b/docs/dev/undefined_behavior.rst
index c777e5c..b2f8805 100644
--- a/docs/dev/undefined_behavior.rst
+++ b/docs/dev/undefined_behavior.rst
@@ -89,7 +89,7 @@
 
 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/docs/gpu/using.rst b/docs/gpu/using.rst
index 14220e4..856bdea 100644
--- a/docs/gpu/using.rst
+++ b/docs/gpu/using.rst
@@ -30,7 +30,7 @@
 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