From 6dd7104e2f4c4538797e9d47a209a00ce248cd43 Mon Sep 17 00:00:00 2001 From: David Xiang Date: Tue, 25 Feb 2020 15:23:52 +0800 Subject: [PATCH] Update 2.8.md --- ch02/2.8/2.8.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch02/2.8/2.8.md b/ch02/2.8/2.8.md index da7169cc..c094fc4b 100644 --- a/ch02/2.8/2.8.md +++ b/ch02/2.8/2.8.md @@ -35,7 +35,7 @@ class For extends Stmt { E1.gen(); Label start = new Label(); Label end = new Label(); - emit("ifFalse " + E2.rvalue().toString() + " goto " + end); + emit(start + ":ifFalse " + E2.rvalue().toString() + " goto " + end); S.gen(); E3.gen(); emit("goto " + start);