]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add missing 'is' to `cmath.log()` docstring (#102049)
authorOwain Davies <116417456+OTheDev@users.noreply.github.com>
Sun, 19 Feb 2023 15:00:59 +0000 (22:00 +0700)
committerGitHub <noreply@github.com>
Sun, 19 Feb 2023 15:00:59 +0000 (15:00 +0000)
Fix missing 'is' in cmath.log() docstring

Modules/clinic/cmathmodule.c.h
Modules/cmathmodule.c

index b1da9452c61db88120761be009a1c0e18b5c8149..941448e76e80def711b796e3e748b056527ebcd5 100644 (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]*/
index 2038ac26e65857854e3a06bcffa8b9f906117b7e..53e34061d537738b7e724d644ae007243f942204 100644 (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;