summaryrefslogtreecommitdiff
path: root/src/func
diff options
context:
space:
mode:
Diffstat (limited to 'src/func')
-rw-r--r--src/func/macros.rs3
-rw-r--r--src/func/mod.rs1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/func/macros.rs b/src/func/macros.rs
index df795213..2da219bc 100644
--- a/src/func/macros.rs
+++ b/src/func/macros.rs
@@ -117,6 +117,7 @@ macro_rules! function {
}
/// Parse the body of a function.
+///
/// - If the function does not expect a body, use `parse!(forbidden: body)`.
/// - If the function can have a body, use `parse!(optional: body, ctx)`.
/// - If the function must have a body, use `parse!(expected: body, ctx)`.
@@ -146,7 +147,7 @@ macro_rules! parse {
}
/// Early-return with a formatted typesetting error or construct an error
-/// expression without returning when prefixed with `@`.
+/// expression.
#[macro_export]
macro_rules! error {
(@unexpected_argument) => (error!(@"unexpected argument"));
diff --git a/src/func/mod.rs b/src/func/mod.rs
index 48e70034..208e1977 100644
--- a/src/func/mod.rs
+++ b/src/func/mod.rs
@@ -104,7 +104,6 @@ pub enum Command<'a> {
AddSpacing(Size, SpacingKind, GenericAxis),
FinishLine,
- FinishRun,
FinishSpace,
BreakParagraph,
BreakPage,