summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/model/eval.rs4
-rw-r--r--src/model/library.rs2
-rw-r--r--src/syntax/ast.rs4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/model/eval.rs b/src/model/eval.rs
index a9fa2e14..3223ef8f 100644
--- a/src/model/eval.rs
+++ b/src/model/eval.rs
@@ -398,8 +398,8 @@ impl Eval for ast::DescItem {
fn eval(&self, vm: &mut Vm) -> SourceResult<Self::Output> {
let term = self.term().eval(vm)?;
- let body = self.body().eval(vm)?;
- Ok((vm.items.desc_item)(term, body))
+ let description = self.description().eval(vm)?;
+ Ok((vm.items.desc_item)(term, description))
}
}
diff --git a/src/model/library.rs b/src/model/library.rs
index 8b767b0e..41a5e8d4 100644
--- a/src/model/library.rs
+++ b/src/model/library.rs
@@ -64,7 +64,7 @@ pub struct LangItems {
/// An item in an enumeration (ordered 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, body: Content) -> Content,
+ pub desc_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`.
diff --git a/src/syntax/ast.rs b/src/syntax/ast.rs
index abbca5ec..5847e816 100644
--- a/src/syntax/ast.rs
+++ b/src/syntax/ast.rs
@@ -407,10 +407,10 @@ impl DescItem {
}
/// The description of the term.
- pub fn body(&self) -> Markup {
+ pub fn description(&self) -> Markup {
self.0
.cast_last_child()
- .expect("description list item is missing body")
+ .expect("description list item is missing description")
}
}