Fix grammar in doc string, RST markup

This commit is contained in:
Martin Panter 2017-01-24 00:30:06 +00:00
parent 8c79c70554
commit 91a8866dc1
3 changed files with 5 additions and 5 deletions

View File

@ -179,5 +179,5 @@ Changes in the Python API
CPython bytecode changes
------------------------
* Added two new opcodes: :opcode:`LOAD_METHOD`` and :opcode:`CALL_METHOD`.
* Added two new opcodes: :opcode:`LOAD_METHOD` and :opcode:`CALL_METHOD`.
(Contributed by Yury Selivanov and INADA Naoki in :issue:`26110`.)

View File

@ -406,7 +406,7 @@ PyDoc_STRVAR(unicode_join__doc__,
"\n"
"Concatenate any number of strings.\n"
"\n"
"The string whose method is called is inserted in between each given strings.\n"
"The string whose method is called is inserted in between each given string.\n"
"The result is returned as a new string.\n"
"\n"
"Example: \'.\'.join([\'ab\', \'pq\', \'rs\']) -> \'ab.pq.rs\'");
@ -962,4 +962,4 @@ unicode_sizeof(PyObject *self, PyObject *Py_UNUSED(ignored))
{
return unicode_sizeof_impl(self);
}
/*[clinic end generated code: output=3d73f3dfd6ec7d83 input=a9049054013a1b77]*/
/*[clinic end generated code: output=88b06f61edd282f9 input=a9049054013a1b77]*/

View File

@ -12201,7 +12201,7 @@ str.join as unicode_join
Concatenate any number of strings.
The string whose method is called is inserted in between each given strings.
The string whose method is called is inserted in between each given string.
The result is returned as a new string.
Example: '.'.join(['ab', 'pq', 'rs']) -> 'ab.pq.rs'
@ -12209,7 +12209,7 @@ Example: '.'.join(['ab', 'pq', 'rs']) -> 'ab.pq.rs'
static PyObject *
unicode_join(PyObject *self, PyObject *iterable)
/*[clinic end generated code: output=6857e7cecfe7bf98 input=d8311e5ccbafbeb6]*/
/*[clinic end generated code: output=6857e7cecfe7bf98 input=2f70422bfb8fa189]*/
{
return PyUnicode_Join(self, iterable);
}