diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-14 13:23:40 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-14 13:24:48 +0200 |
| commit | 2db4b603db7684db7105d7ed627883b5cef6d497 (patch) | |
| tree | 26a884a2c291bccbc86c5aba75351b40d8499835 /src/library | |
| parent | b274155c6d36dfe956899e3606b535cc94c8aca9 (diff) | |
Fix bug with enums starting at zero
Diffstat (limited to 'src/library')
| -rw-r--r-- | src/library/structure/list.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<const L: ListKind> ListNode<L> { fn construct(_: &mut Context, args: &mut Args) -> TypResult<Content> { 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()? |
