Skip to content

Commit

Permalink
[libclang/python] Fix some minor typos (llvm#74292)
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
linux4life798 authored Dec 14, 2023
1 parent 3e6da32 commit 29e043c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang/bindings/python/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion clang/bindings/python/clang/cindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""

Expand Down

0 comments on commit 29e043c

Please sign in to comment.