Skip to content

Commit c8824dc

Browse files
Apply suggestions from code review
Co-authored-by: C.A.M. Gerlach <[email protected]>
1 parent 53ed5cd commit c8824dc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Modules/_collectionsmodule.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -910,8 +910,9 @@ deque_rotate(dequeobject *deque, PyObject *const *args, Py_ssize_t nargs)
910910
}
911911

912912
PyDoc_STRVAR(rotate_doc,
913-
"Rotate the deque n steps to the right (default n=1). "
914-
"If n is negative, rotates left.");
913+
"rotate(n)\n\n"
914+
"Rotate the deque *n* steps to the right (default ``n= 1``). "
915+
"If *n* is negative, rotates left.");
915916

916917
static PyObject *
917918
deque_reverse(dequeobject *deque, PyObject *unused)
@@ -952,6 +953,7 @@ deque_reverse(dequeobject *deque, PyObject *unused)
952953
}
953954

954955
PyDoc_STRVAR(reverse_doc,
956+
"reverse()\n\n"
955957
"Reverse the elements of the deque *IN PLACE*.");
956958

957959
static PyObject *

0 commit comments

Comments
 (0)