]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[doc] Fix typos in `interpreter_definition.md` (#127742)
authorStan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Sun, 8 Dec 2024 18:01:55 +0000 (18:01 +0000)
committerGitHub <noreply@github.com>
Sun, 8 Dec 2024 18:01:55 +0000 (18:01 +0000)
Tools/cases_generator/interpreter_definition.md

index 203286834e3e3f69f511b0908db167f30b2b2d9a..d50c420307852fc86c06c0532c0fc7782d78c803 100644 (file)
@@ -309,7 +309,7 @@ This might become (if it was an instruction):
 
 ### More examples
 
-For explanations see "Generating the interpreter" below.)
+For explanations see "Generating the interpreter" below.
 ```C
     op ( CHECK_HAS_INSTANCE_VALUES, (owner -- owner) ) {
         PyDictOrValues dorv = *_PyObject_DictOrValuesPointer(owner);
@@ -371,7 +371,7 @@ For explanations see "Generating the interpreter" below.)
 
 A _family_ maps a specializable instruction to its specializations.
 
-Example: These opcodes all share the same instruction format):
+Example: These opcodes all share the same instruction format:
 ```C
     family(load_attr) = { LOAD_ATTR, LOAD_ATTR_INSTANCE_VALUE, LOAD_SLOT };
 ```
@@ -393,7 +393,7 @@ which can be easily inserted. What is more complex is ensuring the correct stack
 and not generating excess pops and pushes.
 
 For example, in `CHECK_HAS_INSTANCE_VALUES`, `owner` occurs in the input, so it cannot be
-redefined. Thus it doesn't need to written and can be read without adjusting the stack pointer.
+redefined. Thus it doesn't need to be written and can be read without adjusting the stack pointer.
 The C code generated for `CHECK_HAS_INSTANCE_VALUES` would look something like:
 
 ```C