]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix variable name in dis documentation example (GH-109343)
authorOleksandr Kravets <73752159+olekskrav@users.noreply.github.com>
Wed, 13 Sep 2023 05:07:56 +0000 (01:07 -0400)
committerGitHub <noreply@github.com>
Wed, 13 Sep 2023 05:07:56 +0000 (08:07 +0300)
commita0c06a4f933faccd7f8201701b2491d38464212c
tree9ae14bce4791cf397abe2841f4311bf35aef2c4c
parent6c0ddca409c1ed27b11c70386cd6c88be5d00115
Fix variable name in dis documentation example (GH-109343)

BINARY_SUBSCR example erroneously uses two different names `key` and `index` to refer to the same variable. STORE_SUBSCR and DELETE_SUBSCR use only `key` in the same context. Changing `index` to `key` for consistency.
Doc/library/dis.rst