]> granicus.if.org Git - python/commitdiff
Fix typo in __mul__ and __rmul__ docstring (GH-6674)
authorGrant Jenks <grant.jenks@gmail.com>
Tue, 8 May 2018 22:00:19 +0000 (15:00 -0700)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 8 May 2018 22:00:19 +0000 (01:00 +0300)
Objects/typeobject.c

index 1dd534866b4d65c27e9f37cc9e3fd905fb1e958c..a7a9d7bf9fc3357a6bfb7675f3e9643aef60dfb0 100644 (file)
@@ -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,