diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-22 18:25:29 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-22 18:25:29 +0100 |
| commit | 8527517258cf62a2f229796cc3f118d8bf0494b6 (patch) | |
| tree | 7662e90bcb9d610e63f4b1a9f1f12f84cb1f742a /library/src/lib.rs | |
| parent | 947522b71aa6220ce8f006bfab4700d6e3cb04f1 (diff) | |
Rename `desc` to `terms`
Diffstat (limited to 'library/src/lib.rs')
| -rw-r--r-- | library/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/src/lib.rs b/library/src/lib.rs index 26727711..a4c6fc30 100644 --- a/library/src/lib.rs +++ b/library/src/lib.rs @@ -28,7 +28,7 @@ fn scope() -> Scope { std.def_func::<basics::HeadingNode>("heading"); std.def_func::<basics::ListNode>("list"); std.def_func::<basics::EnumNode>("enum"); - std.def_func::<basics::DescNode>("desc"); + std.def_func::<basics::TermsNode>("terms"); std.def_func::<basics::TableNode>("table"); // Text. @@ -200,8 +200,8 @@ fn items() -> LangItems { heading: |level, body| basics::HeadingNode { level, title: body }.pack(), list_item: |body| layout::ListItem::List(body).pack(), enum_item: |number, body| layout::ListItem::Enum(number, body).pack(), - desc_item: |term, description| { - layout::ListItem::Desc(basics::DescItem { term, description }).pack() + term_item: |term, description| { + layout::ListItem::Term(basics::TermItem { term, description }).pack() }, math: |children, block| math::MathNode { children, block }.pack(), math_atom: |atom| math::AtomNode(atom).pack(), |
