Skip to content

Commit a0ff519

Browse files
Fix typo in __mul__ and __rmul__ docstring (GH-6674)
(cherry picked from commit 0904f76) Co-authored-by: Grant Jenks <[email protected]>
1 parent 263523a commit a0ff519

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Objects/typeobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6938,9 +6938,9 @@ static slotdef slotdefs[] = {
69386938
SQSLOT("__add__", sq_concat, NULL, wrap_binaryfunc,
69396939
"__add__($self, value, /)\n--\n\nReturn self+value."),
69406940
SQSLOT("__mul__", sq_repeat, NULL, wrap_indexargfunc,
6941-
"__mul__($self, value, /)\n--\n\nReturn self*value.n"),
6941+
"__mul__($self, value, /)\n--\n\nReturn self*value."),
69426942
SQSLOT("__rmul__", sq_repeat, NULL, wrap_indexargfunc,
6943-
"__rmul__($self, value, /)\n--\n\nReturn self*value."),
6943+
"__rmul__($self, value, /)\n--\n\nReturn value*self."),
69446944
SQSLOT("__getitem__", sq_item, slot_sq_item, wrap_sq_item,
69456945
"__getitem__($self, key, /)\n--\n\nReturn self[key]."),
69466946
SQSLOT("__setitem__", sq_ass_item, slot_sq_ass_item, wrap_sq_setitem,

0 commit comments

Comments
 (0)