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.
This commit is contained in:
Oleksandr Kravets 2023-09-13 01:07:56 -04:00 committed by GitHub
parent 6c0ddca409
commit a0c06a4f93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -597,7 +597,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