From 2db4b603db7684db7105d7ed627883b5cef6d497 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 14 Apr 2022 13:23:40 +0200 Subject: Fix bug with enums starting at zero --- src/library/structure/list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/library') diff --git a/src/library/structure/list.rs b/src/library/structure/list.rs index 02a7cd38..9d5d3a7d 100644 --- a/src/library/structure/list.rs +++ b/src/library/structure/list.rs @@ -53,7 +53,7 @@ impl ListNode { fn construct(_: &mut Context, args: &mut Args) -> TypResult { Ok(Content::show(Self { - start: args.named("start")?.unwrap_or(0), + start: args.named("start")?.unwrap_or(1), wide: args.named("wide")?.unwrap_or(false), items: args .all()? -- cgit v1.2.3