]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: Fix typo in code snippet (GH-114421)
authorKirill Podoprigora <kirill.bast9@mail.ru>
Mon, 22 Jan 2024 15:56:30 +0000 (18:56 +0300)
committerGitHub <noreply@github.com>
Mon, 22 Jan 2024 15:56:30 +0000 (17:56 +0200)
Doc/library/dis.rst

index 7492ae85c4ea46064599cbcdec046b910caaaaa6..b97d48fafab3b6c56f2d867881e39fdd882dea89 100644 (file)
@@ -576,7 +576,7 @@ operations on it as if it was a Python list. The top of the stack corresponds to
 
    Swap the top of the stack with the i-th element::
 
-      STACK[-i], STACK[-1] = stack[-1], STACK[-i]
+      STACK[-i], STACK[-1] = STACK[-1], STACK[-i]
 
    .. versionadded:: 3.11