Skip to content

Commit 91a8866

Browse files
committed
Fix grammar in doc string, RST markup
1 parent 8c79c70 commit 91a8866

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/whatsnew/3.7.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,5 +179,5 @@ Changes in the Python API
179179
CPython bytecode changes
180180
------------------------
181181

182-
* Added two new opcodes: :opcode:`LOAD_METHOD`` and :opcode:`CALL_METHOD`.
182+
* Added two new opcodes: :opcode:`LOAD_METHOD` and :opcode:`CALL_METHOD`.
183183
(Contributed by Yury Selivanov and INADA Naoki in :issue:`26110`.)

Objects/clinic/unicodeobject.c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ PyDoc_STRVAR(unicode_join__doc__,
406406
"\n"
407407
"Concatenate any number of strings.\n"
408408
"\n"
409-
"The string whose method is called is inserted in between each given strings.\n"
409+
"The string whose method is called is inserted in between each given string.\n"
410410
"The result is returned as a new string.\n"
411411
"\n"
412412
"Example: \'.\'.join([\'ab\', \'pq\', \'rs\']) -> \'ab.pq.rs\'");
@@ -962,4 +962,4 @@ unicode_sizeof(PyObject *self, PyObject *Py_UNUSED(ignored))
962962
{
963963
return unicode_sizeof_impl(self);
964964
}
965-
/*[clinic end generated code: output=3d73f3dfd6ec7d83 input=a9049054013a1b77]*/
965+
/*[clinic end generated code: output=88b06f61edd282f9 input=a9049054013a1b77]*/

Objects/unicodeobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12201,15 +12201,15 @@ str.join as unicode_join
1220112201
1220212202
Concatenate any number of strings.
1220312203
12204-
The string whose method is called is inserted in between each given strings.
12204+
The string whose method is called is inserted in between each given string.
1220512205
The result is returned as a new string.
1220612206
1220712207
Example: '.'.join(['ab', 'pq', 'rs']) -> 'ab.pq.rs'
1220812208
[clinic start generated code]*/
1220912209

1221012210
static PyObject *
1221112211
unicode_join(PyObject *self, PyObject *iterable)
12212-
/*[clinic end generated code: output=6857e7cecfe7bf98 input=d8311e5ccbafbeb6]*/
12212+
/*[clinic end generated code: output=6857e7cecfe7bf98 input=2f70422bfb8fa189]*/
1221312213
{
1221412214
return PyUnicode_Join(self, iterable);
1221512215
}

0 commit comments

Comments
 (0)