]> granicus.if.org Git - python/commitdiff
Fix typo in __mul__ and __rmul__ docstring (GH-6674)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 9 May 2018 05:49:57 +0000 (22:49 -0700)
committerGitHub <noreply@github.com>
Wed, 9 May 2018 05:49:57 +0000 (22:49 -0700)
(cherry picked from commit 0904f766e116c269675317e11368a4d29eef0bc6)

Co-authored-by: Grant Jenks <grant.jenks@gmail.com>
Objects/typeobject.c

index e843204f10a64a06ffe1c99e390c34b8d30218d7..69b1878fd8f2c0030cef89aa72963a1f0a098571 100644 (file)
@@ -6740,9 +6740,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,