summaryrefslogtreecommitdiff
path: root/src/syntax
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-12-21 12:50:33 +0100
committerLaurenz <laurmaedje@gmail.com>2022-12-21 12:50:33 +0100
commitba294e2670814243122c9e4f560e0f21a4bec13d (patch)
tree36bdf987dc53729bb4a176713b40e2ca7c08a874 /src/syntax
parent959df6da3b6e3c5876e9d5627cb2970e32a0a37f (diff)
Split up list type into three separate types and document them
Diffstat (limited to 'src/syntax')
-rw-r--r--src/syntax/ast.rs4
1 files changed, 2 insertions, 2 deletions
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")
}
}