diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2023-02-26 14:56:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-26 14:56:10 (GMT) |
commit | 8e9ffd956aaec3aa82bb91a4fa0dd390209013f2 (patch) | |
tree | b1d7c1442893c3465d212533ac53d0ef6bd0379e | |
parent | 4732f551e2b3b0c229269be48bfba7274e122f86 (diff) | |
download | cpython-8e9ffd956aaec3aa82bb91a4fa0dd390209013f2.zip cpython-8e9ffd956aaec3aa82bb91a4fa0dd390209013f2.tar.gz cpython-8e9ffd956aaec3aa82bb91a4fa0dd390209013f2.tar.bz2 |
[3.10] Add missing 'is' to `cmath.log()` docstring (GH-102049) (#102280)
Fix missing 'is' in cmath.log() docstring.
(cherry picked from commit 71f614ef2a3d66213b9cae807cbbc1ed03741221)
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
-rw-r--r-- | Modules/clinic/cmathmodule.c.h | 4 | ||||
-rw-r--r-- | Modules/cmathmodule.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Modules/clinic/cmathmodule.c.h b/Modules/clinic/cmathmodule.c.h index 4b6653a..d4779a9 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)(void(*)(void))cmath_log, METH_FASTCALL, cmath_log__doc__}, @@ -953,4 +953,4 @@ skip_optional_kwonly: exit: return return_value; } -/*[clinic end generated code: output=353347db2e808e0d input=a9049054013a1b77]*/ +/*[clinic end generated code: output=717d3d9f0640e893 input=a9049054013a1b77]*/ diff --git a/Modules/cmathmodule.c b/Modules/cmathmodule.c index 0f22049..0c3241f 100644 --- a/Modules/cmathmodule.c +++ b/Modules/cmathmodule.c @@ -950,12 +950,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; |