]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Docs: Fix typo in code snippet (GH-114421) (GH-114434)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 22 Jan 2024 16:03:22 +0000 (17:03 +0100)
committerGitHub <noreply@github.com>
Mon, 22 Jan 2024 16:03:22 +0000 (16:03 +0000)
(cherry picked from commit 6d30cbee013b4182937ffa11a7c87d2a7b6b7b41)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Doc/library/dis.rst

index ba7e13e2a19b8eb903207a89a92c2080d9e75925..abcc3cde23526c2744c11e30ccc51d7e40477c05 100644 (file)
@@ -483,7 +483,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