[clang] 29e043c - [libclang/python] Fix some minor typos (#74292)

via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 14 13:25:07 PST 2023


Author: Craig Hesling
Date: 2023-12-14T16:25:03-05:00
New Revision: 29e043cb5c2efaad7fb203fb8240a91b77ca0c5b

URL: https://github.com/llvm/llvm-project/commit/29e043cb5c2efaad7fb203fb8240a91b77ca0c5b
DIFF: https://github.com/llvm/llvm-project/commit/29e043cb5c2efaad7fb203fb8240a91b77ca0c5b.diff

LOG: [libclang/python] Fix some minor typos (#74292)

These patches do not change the functionality of the library. They
simply correct comments and documentation.

* Add a missing space in a the `FixIt` class comment
* Fix an llvm-project path in the `README.txt`

Added: 
    

Modified: 
    clang/bindings/python/README.txt
    clang/bindings/python/clang/cindex.py

Removed: 
    


################################################################################
diff  --git a/clang/bindings/python/README.txt b/clang/bindings/python/README.txt
index b0f0142a56f116..44c715e5de56f7 100644
--- a/clang/bindings/python/README.txt
+++ b/clang/bindings/python/README.txt
@@ -8,7 +8,7 @@ You may need to set CLANG_LIBRARY_PATH so that the Clang library can be
 found. The unit tests are designed to be run with any standard test
 runner. For example:
 --
-$ env PYTHONPATH=$(echo ~/llvm/tools/clang/bindings/python/) \
+$ env PYTHONPATH=$(echo ~/llvm/clang/bindings/python/) \
       CLANG_LIBRARY_PATH=$(llvm-config --libdir) \
   python -m unittest discover -v
 tests.cindex.test_index.test_create ... ok

diff  --git a/clang/bindings/python/clang/cindex.py b/clang/bindings/python/clang/cindex.py
index 6a16f3a9ef6e95..d780ee353a133c 100644
--- a/clang/bindings/python/clang/cindex.py
+++ b/clang/bindings/python/clang/cindex.py
@@ -535,7 +535,7 @@ def from_param(self):
 class FixIt(object):
     """
     A FixIt represents a transformation to be applied to the source to
-    "fix-it". The fix-it shouldbe applied by replacing the given source range
+    "fix-it". The fix-it should be applied by replacing the given source range
     with the given value.
     """
 


        


More information about the cfe-commits mailing list