summaryrefslogtreecommitdiff
path: root/src/library/spacing.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-03-22 10:48:29 +0100
committerLaurenz <laurmaedje@gmail.com>2021-03-22 10:48:29 +0100
commit39f55481ed7bc5ebc6d310924e90e7b6c0760d3b (patch)
treec5733ae87270e3050a0cec02a936eb843684958a /src/library/spacing.rs
parent83fa2c075eb8e41bd1a29157eb02f814f7f0ae96 (diff)
More consistent documentation 📝
Diffstat (limited to 'src/library/spacing.rs')
-rw-r--r--src/library/spacing.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/spacing.rs b/src/library/spacing.rs
index 5e3b7743..506f6585 100644
--- a/src/library/spacing.rs
+++ b/src/library/spacing.rs
@@ -1,24 +1,24 @@
use super::*;
use crate::layout::SpacingNode;
-/// `h`: Insert horizontal spacing.
+/// `h`: Horizontal spacing.
///
/// # Positional parameters
/// - Amount of spacing: of type `linear` relative to current font size.
///
/// # Return value
-/// A template that adds horizontal spacing.
+/// A template that inserts horizontal spacing.
pub fn h(ctx: &mut EvalContext, args: &mut FuncArgs) -> Value {
spacing_impl(ctx, args, SpecAxis::Horizontal)
}
-/// `v`: Insert vertical spacing.
+/// `v`: Vertical spacing.
///
/// # Positional parameters
/// - Amount of spacing: of type `linear` relative to current font size.
///
/// # Return value
-/// A template that adds vertical spacing.
+/// A template that inserts vertical spacing.
pub fn v(ctx: &mut EvalContext, args: &mut FuncArgs) -> Value {
spacing_impl(ctx, args, SpecAxis::Vertical)
}