Skip to content

Commit 633d498

Browse files
happiclaude
andcommitted
Fix incorrect label references in selective receive docs
In section 7.5.2, the prose said "end up at L3" for loop_rec_end and "wait instruction at L4", but loop_rec_end is at L2 and wait is at L3. Also fixed "jumps back to L2" to "jumps back to L1". Fixes #234 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1dc612c commit 633d498

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

chapters/beam_instructions.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,12 +369,12 @@ matches.
369369

370370
In this case we do a pattern match for Nil after the loop_rec
371371
instruction if there was a message in the mailbox. If the message
372-
doesn't match we end up at L3 where the instruction `loop_rec_end`
372+
doesn't match we end up at L2 where the instruction `loop_rec_end`
373373
advances the save pointer to the next message (`+p->msg.save =
374-
&(*p->msg.save)->next+`) and jumps back to L2.
374+
&(*p->msg.save)->next+`) and jumps back to L1.
375375

376376
If there are no more messages in the message queue the process is
377-
suspended by the `wait` instruction at L4 with the save pointer pointing
377+
suspended by the `wait` instruction at L3 with the save pointer pointing
378378
to the end of the message queue. When the processes is rescheduled
379379
it will only look at new messages in the message queue (after the save
380380
point).

0 commit comments

Comments
 (0)