Skip to content

Commit dbfda82

Browse files
committed
DOC typo fixes
1 parent c422ffd commit dbfda82

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ selectors. This API can be used for quickly selecting nested data::
119119
'image4_thumb.jpg',
120120
'image5_thumb.jpg']
121121

122-
If you want to extract only first matched element, you can call the
122+
If you want to extract only the first matched element, you can call the
123123
selector ``.get()`` (or its alias ``.extract_first()`` commonly used in
124124
previous parsel versions)::
125125

parsel/selector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def re(self, regex, replace_entities=True):
273273
will be compiled to a regular expression using ``re.compile(regex)``.
274274
275275
By default, character entity references are replaced by their
276-
corresponding character (except for ``&`` and ``<``.
276+
corresponding character (except for ``&`` and ``<``).
277277
Passing ``replace_entities`` as ``False`` switches off these
278278
replacements.
279279
"""
@@ -286,7 +286,7 @@ def re_first(self, regex, default=None, replace_entities=True):
286286
the argument is not provided).
287287
288288
By default, character entity references are replaced by their
289-
corresponding character (except for ``&`` and ``<``.
289+
corresponding character (except for ``&`` and ``<``).
290290
Passing ``replace_entities`` as ``False`` switches off these
291291
replacements.
292292
"""

0 commit comments

Comments
 (0)