From 16242be90dde1a4678a244b4c1c7986119564d77 Mon Sep 17 00:00:00 2001 From: chytonpide Date: Sat, 8 Nov 2025 12:32:00 +0900 Subject: [PATCH] Fix incorrect description of OR operator's short-circuit behavior --- book/jumping-back-and-forth.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/jumping-back-and-forth.md b/book/jumping-back-and-forth.md index 303a9b237..3374039e0 100644 --- a/book/jumping-back-and-forth.md +++ b/book/jumping-back-and-forth.md @@ -369,7 +369,7 @@ separate instruction, but just to show how our compiler is free to map the language's semantics to whatever instruction sequence it wants, I implemented it in terms of the jump instructions we already have. -When the left-hand side is falsey, it does a tiny jump over the next statement. +When the left-hand side is truthy, it does a tiny jump over the next statement. That statement is an unconditional jump over the code for the right operand. This little dance effectively does a jump when the value is truthy. The flow looks like this: