]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-119786: Fix small typo in AST to CFG to bytecode section in compiler.md (#129322)
authorSergey Miryanov <sergey.miryanov@gmail.com>
Mon, 27 Jan 2025 14:36:09 +0000 (06:36 -0800)
committerGitHub <noreply@github.com>
Mon, 27 Jan 2025 14:36:09 +0000 (16:36 +0200)
InternalDocs/compiler.md

index c257bfd9faf78f7fdca85243d13dd20836c13d62..8ca19a42b91b8354d5feb57926a11b2b9dbf0280 100644 (file)
@@ -401,7 +401,7 @@ Emission of bytecode is handled by the following macros:
   add the `LOAD_CONST` opcode with the proper argument based on the
   position of the specified PyObject in the consts table.
 * `ADDOP_LOAD_CONST_NEW(struct compiler *, location, PyObject *)`:
-  just like `ADDOP_LOAD_CONST_NEW`, but steals a reference to PyObject
+  just like `ADDOP_LOAD_CONST`, but steals a reference to PyObject
 * `ADDOP_JUMP(struct compiler *, location, int, basicblock *)`:
   create a jump to a basic block