Add missing 'is' to `cmath.log()` docstring (#102049)

Fix missing 'is' in cmath.log() docstring
This commit is contained in:
Owain Davies 2023-02-19 22:00:59 +07:00 committed by GitHub
parent 9a07eff628
commit 71f614ef2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -644,7 +644,7 @@ PyDoc_STRVAR(cmath_log__doc__,
"\n"
"log(z[, base]) -> the logarithm of z to the given base.\n"
"\n"
"If the base not specified, returns the natural logarithm (base e) of z.");
"If the base is not specified, returns the natural logarithm (base e) of z.");
#define CMATH_LOG_METHODDEF \
{"log", _PyCFunction_CAST(cmath_log), METH_FASTCALL, cmath_log__doc__},
@ -982,4 +982,4 @@ skip_optional_kwonly:
exit:
return return_value;
}
/*[clinic end generated code: output=0146c656e67f5d5f input=a9049054013a1b77]*/
/*[clinic end generated code: output=87f609786ef270cd input=a9049054013a1b77]*/

View File

@ -957,12 +957,12 @@ cmath.log
log(z[, base]) -> the logarithm of z to the given base.
If the base not specified, returns the natural logarithm (base e) of z.
If the base is not specified, returns the natural logarithm (base e) of z.
[clinic start generated code]*/
static PyObject *
cmath_log_impl(PyObject *module, Py_complex x, PyObject *y_obj)
/*[clinic end generated code: output=4effdb7d258e0d94 input=230ed3a71ecd000a]*/
/*[clinic end generated code: output=4effdb7d258e0d94 input=e1f81d4fcfd26497]*/
{
Py_complex y;