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 /src/model/library.rs | |
| parent | 947522b71aa6220ce8f006bfab4700d6e3cb04f1 (diff) | |
Rename `desc` to `terms`
Diffstat (limited to 'src/model/library.rs')
| -rw-r--r-- | src/model/library.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/model/library.rs b/src/model/library.rs index 41a5e8d4..c6449e27 100644 --- a/src/model/library.rs +++ b/src/model/library.rs @@ -59,12 +59,12 @@ pub struct LangItems { pub ref_: fn(target: EcoString) -> Content, /// A section heading: `= Introduction`. pub heading: fn(level: NonZeroUsize, body: Content) -> Content, - /// An item in an unordered list: `- ...`. + /// An item in a bullet list: `- ...`. pub list_item: fn(body: Content) -> Content, - /// An item in an enumeration (ordered list): `+ ...` or `1. ...`. + /// An item in an enumeration (numbered list): `+ ...` or `1. ...`. pub enum_item: fn(number: Option<NonZeroUsize>, body: Content) -> Content, - /// An item in a description list: `/ Term: Details`. - pub desc_item: fn(term: Content, description: Content) -> Content, + /// An item in a term list: `/ Term: Details`. + pub term_item: fn(term: Content, description: Content) -> Content, /// A mathematical formula: `$x$`, `$ x^2 $`. pub math: fn(children: Vec<Content>, block: bool) -> Content, /// An atom in a formula: `x`, `+`, `12`. @@ -102,7 +102,7 @@ impl Hash for LangItems { self.heading.hash(state); self.list_item.hash(state); self.enum_item.hash(state); - self.desc_item.hash(state); + self.term_item.hash(state); self.math.hash(state); self.math_atom.hash(state); self.math_script.hash(state); |
