Skip to content

Commit c045caa

Browse files
[lldb] Proofread python-reference.rst (#149643)
1 parent 7a42fb8 commit c045caa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lldb/docs/use/python-reference.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ For instance, if the string you are completing is "Test" and the available compl
748748
749749
return {"completion": "Test1", "mode" : "partial"}
750750
751-
and then lldb will add the "1" at the curson and advance it after the added string,
751+
and then lldb will add the "1" at the cursor and advance it after the added string,
752752
waiting for more completions. But if "Test1" is the only completion, return:
753753

754754
.. code-block:: python
@@ -933,7 +933,7 @@ that goal:
933933
Using the lldb.py module in Python
934934
----------------------------------
935935

936-
LLDB has all of its core code build into a shared library which gets used by
936+
LLDB has all of its core code built into a shared library which gets used by
937937
the `lldb` command line application. On macOS this shared library is a
938938
framework: LLDB.framework and on other unix variants the program is a shared
939939
library: lldb.so. LLDB also provides an lldb.py module that contains the
@@ -956,7 +956,7 @@ For sh and bash:
956956

957957
$ export PYTHONPATH=`lldb -P`
958958

959-
Alternately, you can append the LLDB Python directory to the sys.path list
959+
Alternatively, you can append the LLDB Python directory to the sys.path list
960960
directly in your Python code before importing the lldb module.
961961

962962
Now your python scripts are ready to import the lldb module. Below is a python
@@ -1093,11 +1093,11 @@ Writing Target Stop-Hooks in Python
10931093

10941094
Stop hooks fire whenever the process stops just before control is returned to the
10951095
user. Stop hooks can either be a set of lldb command-line commands, or can
1096-
be implemented by a suitably defined Python class. The Python based stop-hooks
1097-
can also be passed as set of -key -value pairs when they are added, and those
1096+
be implemented by a suitably defined Python class. The Python-based stop-hooks
1097+
can also be passed as a set of -key -value pairs when they are added, and those
10981098
will get packaged up into a SBStructuredData Dictionary and passed to the
10991099
constructor of the Python object managing the stop hook. This allows for
1100-
parametrization of the stop hooks.
1100+
parameterization of the stop hooks.
11011101

11021102
To add a Python-based stop hook, first define a class with the following methods:
11031103

0 commit comments

Comments
 (0)