From 5c80eeb686626e5ac1a945a4952abd4b936542f8 Mon Sep 17 00:00:00 2001 From: henz Date: Mon, 1 Jul 2024 20:53:52 +0800 Subject: [PATCH] fixes #1000 --- xml/chapter3/section3/subsection3.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/chapter3/section3/subsection3.xml b/xml/chapter3/section3/subsection3.xml index 1ac26c93a..7876eb04f 100644 --- a/xml/chapter3/section3/subsection3.xml +++ b/xml/chapter3/section3/subsection3.xml @@ -439,7 +439,7 @@ function insert(key_1, key_2, value, table) { set_tail(table, pair(list(key_1, pair(key_2, value)), tail(table))); } else { - const record = assoc(key_2, tail(table)); + const record = assoc(key_2, tail(subtable)); if (is_undefined(record)) { set_tail(subtable, pair(pair(key_2, value), tail(subtable)));