diff options
author | Grant Jenks <grant.jenks@gmail.com> | 2018-05-08 22:00:19 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-05-08 22:00:19 (GMT) |
commit | 0904f766e116c269675317e11368a4d29eef0bc6 (patch) | |
tree | e55741db203d96cb3886ef97713aa0f4a57e69b5 /Objects | |
parent | bd5f96581bf23f6d05fc106996428a8043b6b084 (diff) | |
download | cpython-0904f766e116c269675317e11368a4d29eef0bc6.zip cpython-0904f766e116c269675317e11368a4d29eef0bc6.tar.gz cpython-0904f766e116c269675317e11368a4d29eef0bc6.tar.bz2 |
Fix typo in __mul__ and __rmul__ docstring (GH-6674)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 1dd5348..a7a9d7b 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -6938,9 +6938,9 @@ static slotdef slotdefs[] = { SQSLOT("__add__", sq_concat, NULL, wrap_binaryfunc, "__add__($self, value, /)\n--\n\nReturn self+value."), SQSLOT("__mul__", sq_repeat, NULL, wrap_indexargfunc, - "__mul__($self, value, /)\n--\n\nReturn self*value.n"), + "__mul__($self, value, /)\n--\n\nReturn self*value."), SQSLOT("__rmul__", sq_repeat, NULL, wrap_indexargfunc, - "__rmul__($self, value, /)\n--\n\nReturn self*value."), + "__rmul__($self, value, /)\n--\n\nReturn value*self."), SQSLOT("__getitem__", sq_item, slot_sq_item, wrap_sq_item, "__getitem__($self, key, /)\n--\n\nReturn self[key]."), SQSLOT("__setitem__", sq_ass_item, slot_sq_ass_item, wrap_sq_setitem, |