[3.12] Fix variable name in dis documentation example (GH-109343) (#109364)

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.
(cherry picked from commit a0c06a4f93)

Co-authored-by: Oleksandr Kravets <73752159+olekskrav@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2023-09-13 03:37:46 -07:00 committed by GitHub
parent 47402e235d
commit 5b38bdeaf1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -528,7 +528,7 @@ not have to be) the original ``STACK[-2]``.
key = STACK.pop()
container = STACK.pop()
STACK.append(container[index])
STACK.append(container[key])
.. opcode:: STORE_SUBSCR