summaryrefslogtreecommitdiff
path: root/src/library/layout.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-12-27 20:45:20 +0100
committerLaurenz <laurmaedje@gmail.com>2020-12-27 20:45:20 +0100
commitba3d43f7b2a18984be27f3d472884a19f3adce4c (patch)
tree1c6ffa31145fb69c19319440969d2037b27b584f /src/library/layout.rs
parent750d220bb080be077cd7ede6d18d485b1c3fb0c9 (diff)
Refresh function call and dictionary syntax
- No colon between function name and arguments, just whitespace - "Named" arguments (previously "keyword" arguments) use colon instead of equals sign
Diffstat (limited to 'src/library/layout.rs')
-rw-r--r--src/library/layout.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/layout.rs b/src/library/layout.rs
index c014cc34..c888ea18 100644
--- a/src/library/layout.rs
+++ b/src/library/layout.rs
@@ -12,7 +12,7 @@ use crate::prelude::*;
/// - first (optional, `Alignment`): An alignment for any of the two axes.
/// - second (optional, `Alignment`): An alignment for the other axis.
///
-/// # Keyword arguments
+/// # Named arguments
/// - `horizontal` (`Alignment`): An alignment for the horizontal axis.
/// - `vertical` (`Alignment`): An alignment for the vertical axis.
///
@@ -188,7 +188,7 @@ impl Display for SpecAlign {
/// `box`: Layout content into a box.
///
-/// # Keyword arguments
+/// # Named arguments
/// - `width` (`linear` relative to parent width): The width of the box.
/// - `height` (`linear` relative to parent height): The height of the box.
pub fn boxed(mut args: Args, ctx: &mut EvalContext) -> Value {
@@ -268,7 +268,7 @@ fn spacing(mut args: Args, ctx: &mut EvalContext, axis: SpecAxis) -> Value {
/// # Positional arguments
/// - Paper name (optional, `Paper`).
///
-/// # Keyword arguments
+/// # Named arguments
/// - `width` (`length`): The width of pages.
/// - `height` (`length`): The height of pages.
/// - `margins` (`linear` relative to sides): The margins for all sides.