Skip to content

Commit 581cba4

Browse files
justinmktimgates42
andauthored
docs: fix a few simple typos (#490)
Closes #487 Co-authored-by: Tim Gates <tim.gates@iress.com>
1 parent bc85d13 commit 581cba4

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

docs/usage/python-plugin-api.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ root, and use ``vim.exec_lua("_testplugin = require('testplugin')")``.
8686
In both cases, replace ``testplugin`` with a unique string based on your plugin
8787
name.
8888

89-
Then, the module can be acessed as ``vim.lua._testplugin``.
89+
Then, the module can be accessed as ``vim.lua._testplugin``.
9090

9191
.. code-block:: python
9292

pynvim/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ def attach(session_type, address=None, port=None,
9898
When the session is not needed anymore, it is recommended to explicitly
9999
close it:
100100
nvim.close()
101-
It is also possible to use the session as a context mangager:
101+
It is also possible to use the session as a context manager:
102102
with attach('socket', path=thepath) as nvim:
103103
print(nvim.funcs.getpid())
104104
print(nvim.current.line)
105105
This will automatically close the session when you're done with it, or
106-
when an error occured.
106+
when an error occurred.
107107
108108
109109
"""

pynvim/api/buffer.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __getitem__(self, idx):
3737
buffer. For example, -1 is the last line, -2 is the line before that
3838
and so on.
3939
40-
When retrieving slices, omiting indexes(eg: `buffer[:]`) will bring
40+
When retrieving slices, omitting indexes(eg: `buffer[:]`) will bring
4141
the whole buffer.
4242
"""
4343
if not isinstance(idx, slice):
@@ -52,7 +52,7 @@ def __setitem__(self, idx, item):
5252
5353
Like with `__getitem__`, indexes may be negative.
5454
55-
When replacing slices, omiting indexes(eg: `buffer[:]`) will replace
55+
When replacing slices, omitting indexes(eg: `buffer[:]`) will replace
5656
the whole buffer.
5757
"""
5858
if not isinstance(idx, slice):
@@ -69,7 +69,7 @@ def __iter__(self):
6969
7070
This will retrieve all lines locally before iteration starts. This
7171
approach is used because for most cases, the gain is much greater by
72-
minimizing the number of API calls by transfering all data needed to
72+
minimizing the number of API calls by transferring all data needed to
7373
work.
7474
"""
7575
lines = self[:]

pynvim/msgpack_rpc/async_session.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def notify(self, method, args):
5050
5151
A msgpack-rpc with method `method` and argument `args` is sent to
5252
Nvim. This will have the same effect as a request, but no response
53-
will be recieved
53+
will be received
5454
"""
5555
self._msgpack_stream.send([2, method, args])
5656

scripts/logging_statement_modifier.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def modify_logging(input_fn, output_fn, min_level_value, max_level_value, restor
264264

265265
def check_level(logging_stmt, logging_stmt_is_commented_out, min_level_value, max_level_value):
266266
"""Extracts the level of the logging statement and returns True if the
267-
level falls betwen min and max_level_value. If the level cannot be
267+
level falls between min and max_level_value. If the level cannot be
268268
extracted, then a warning is logged."""
269269
level = get_logging_level(logging_stmt, logging_stmt_is_commented_out)
270270
if level is None:

test/test_decorators.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def function():
1515
decorated = command('test', count=count_value)(function)
1616
assert 'count' not in decorated._nvim_rpc_spec['opts']
1717

18-
# Test presesence with value of 0
18+
# Test precedence with value of 0
1919
count_value = 0
2020
decorated = command('test', count=count_value)(function)
2121
assert 'count' in decorated._nvim_rpc_spec['opts']

0 commit comments

Comments
 (0)