summaryrefslogtreecommitdiff
path: root/src/library/direction.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/direction.rs')
-rw-r--r--src/library/direction.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/library/direction.rs b/src/library/direction.rs
index 7bb11c99..a0992075 100644
--- a/src/library/direction.rs
+++ b/src/library/direction.rs
@@ -1,16 +1,17 @@
use crate::func::prelude::*;
use super::maps::PosAxisMap;
+
function! {
/// `direction`: Sets the directions of the layouting axes.
#[derive(Debug, PartialEq)]
- pub struct DirectionChange {
+ pub struct DirectionFunc {
body: Option<SyntaxTree>,
map: PosAxisMap<Direction>,
}
parse(args, body, ctx) {
- DirectionChange {
+ DirectionFunc {
body: parse!(optional: body, ctx),
map: PosAxisMap::new(&mut args)?,
}