8000 Fix error in docstring for popleft · python/cpython@991f686 · GitHub
[go: up one dir, main page]

Skip to content

Commit 991f686

Browse files
committed
Fix error in docstring for popleft
We pop the leftmost, not the rightmost.
1 parent eefd994 commit 991f686

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Modules/_collectionsmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,12 @@ _collections.deque.popleft
277277
278278
deque: dequeobject
279279
280-
Remove and return the rightmost element.
280+
Remove and return the leftmost element.
281281
[clinic start generated code]*/
282282

283283
static PyObject *
284284
_collections_deque_popleft_impl(dequeobject *deque)
285-
/*[clinic end generated code: output=8cd77178b5116aba input=39d64df4664392d3]*/
285+
/*[clinic end generated code: output=8cd77178b5116aba input=0ca92ec89734848a]*/
286286
{
287287
PyObject *item;
288288
block *prevblock;

Modules/clinic/_collectionsmodule.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
0