Skip to content

Commit 2367759

Browse files
[doc] Fix typos in interpreter_definition.md (python#127742)
1 parent 3b78409 commit 2367759

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tools/cases_generator/interpreter_definition.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ This might become (if it was an instruction):
309309
310310
### More examples
311311
312-
For explanations see "Generating the interpreter" below.)
312+
For explanations see "Generating the interpreter" below.
313313
```C
314314
op ( CHECK_HAS_INSTANCE_VALUES, (owner -- owner) ) {
315315
PyDictOrValues dorv = *_PyObject_DictOrValuesPointer(owner);
@@ -371,7 +371,7 @@ For explanations see "Generating the interpreter" below.)
371371

372372
A _family_ maps a specializable instruction to its specializations.
373373

374-
Example: These opcodes all share the same instruction format):
374+
Example: These opcodes all share the same instruction format:
375375
```C
376376
family(load_attr) = { LOAD_ATTR, LOAD_ATTR_INSTANCE_VALUE, LOAD_SLOT };
377377
```
@@ -393,7 +393,7 @@ which can be easily inserted. What is more complex is ensuring the correct stack
393393
and not generating excess pops and pushes.
394394

395395
For example, in `CHECK_HAS_INSTANCE_VALUES`, `owner` occurs in the input, so it cannot be
396-
redefined. Thus it doesn't need to written and can be read without adjusting the stack pointer.
396+
redefined. Thus it doesn't need to be written and can be read without adjusting the stack pointer.
397397
The C code generated for `CHECK_HAS_INSTANCE_VALUES` would look something like:
398398

399399
```C

0 commit comments

Comments
 (0)