Skip to content

Commit 31601c6

Browse files
committed
Fix up comments
1 parent a1245e5 commit 31601c6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Include/cpython/code.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ typedef struct {
3535
} _PyCoCached;
3636

3737
/* Ancillary data structure used for instrumentation.
38-
Line instrumentation creates an array of
39-
these. One entry per code unit.*/
38+
Line instrumentation creates this with sufficient
39+
space for one entry per code unit. The total size
40+
of the data will be `bytes_per_entry * Py_SIZE(code)` */
4041
typedef struct {
4142
uint8_t bytes_per_entry;
4243
uint8_t data[1];

Python/instrumentation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,7 @@ initialize_lines(PyCodeObject *code, int bytes_per_entry)
15281528
case POP_ITER:
15291529
/* END_FOR cannot start a line, as it is skipped by FOR_ITER
15301530
* END_SEND cannot start a line, as it is skipped by SEND
1531-
* RESUME and POP_ITER must not be instrumented with INSTRUMENT_LINE */
1531+
* RESUME and POP_ITER must not be instrumented with INSTRUMENTED_LINE */
15321532
set_original_opcode(line_data, i, 0);
15331533
break;
15341534
default:

0 commit comments

Comments
 (0)