diff --git a/xml/chapter2/section3/subsection4.xml b/xml/chapter2/section3/subsection4.xml index bf176a3ab..3c7f42ef4 100644 --- a/xml/chapter2/section3/subsection4.xml +++ b/xml/chapter2/section3/subsection4.xml @@ -766,16 +766,16 @@ function make_leaf_set(pairs) { make_leaf_set_example -make_leaf_set( list( make_leaf("A", 4), - make_leaf("B", 2), - make_leaf("C", 1), - make_leaf("D", 1) ) ); +make_leaf_set( list( list("A", 4), + list("B", 2), + list("C", 1), + list("D", 1) ) ); -head(make_leaf_set( list( make_leaf("A", 4), - make_leaf("B", 2), - make_leaf("C", 1), - make_leaf("D", 1) ) ) ); +head(make_leaf_set( list( list("A", 4), + list("B", 2), + list("C", 1), + list("D", 1) ) ) );