From 8b90ef14d6968aa5b7367dec5906ea9556ccda95 Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Wed, 27 Nov 2024 20:20:56 -0500 Subject: [PATCH] doc fix for list_head --- lists.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lists.scad b/lists.scad index a343723..6ccb8a6 100644 --- a/lists.scad +++ b/lists.scad @@ -304,7 +304,7 @@ function last(list) = // Example: // hlist1 = list_head(["foo", "bar", "baz"]); // Returns: ["foo", "bar"] // hlist2 = list_head(["foo", "bar", "baz"], -3); // Returns: ["foo"] -// hlist3 = list_head(["foo", "bar", "baz"], 2); // Returns: ["foo","bar"] +// hlist3 = list_head(["foo", "bar", "baz"], 1); // Returns: ["foo","bar"] // hlist4 = list_head(["foo", "bar", "baz"], -5); // Returns: [] // hlist5 = list_head(["foo", "bar", "baz"], 5); // Returns: ["foo","bar","baz"] function list_head(list, to=-2) =