summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2023-02-26 14:55:44 (GMT)
committerGitHub <noreply@github.com>2023-02-26 14:55:44 (GMT)
commiteb5565918ab9f814fc3490f0604ee0c96cd981b4 (patch)
tree4ae7bad125d6b8e628ef56b8ee165dd18d4fdd01 /Modules
parent2c4fc87ac18414266ab62105a3cabb94a82a8640 (diff)
downloadcpython-eb5565918ab9f814fc3490f0604ee0c96cd981b4.zip
cpython-eb5565918ab9f814fc3490f0604ee0c96cd981b4.tar.gz
cpython-eb5565918ab9f814fc3490f0604ee0c96cd981b4.tar.bz2
[3.11] Add missing 'is' to `cmath.log()` docstring (GH-102049) (#102279)
Fix missing 'is' in cmath.log() docstring. (cherry picked from commit 71f614ef2a3d66213b9cae807cbbc1ed03741221) Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
Diffstat (limited to 'Modules')
-rw-r--r--Modules/clinic/cmathmodule.c.h4
-rw-r--r--Modules/cmathmodule.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/Modules/clinic/cmathmodule.c.h b/Modules/clinic/cmathmodule.c.h
index ab55692..1f2a9a1 100644
--- a/Modules/clinic/cmathmodule.c.h
+++ b/Modules/clinic/cmathmodule.c.h
@@ -638,7 +638,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__},
@@ -953,4 +953,4 @@ skip_optional_kwonly:
exit:
return return_value;
}
-/*[clinic end generated code: output=b8e445fcd2a3da65 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=c6e3f37cd562c942 input=a9049054013a1b77]*/
diff --git a/Modules/cmathmodule.c b/Modules/cmathmodule.c
index 2038ac2..53e3406 100644
--- a/Modules/cmathmodule.c
+++ b/Modules/cmathmodule.c
@@ -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;