summaryrefslogtreecommitdiff
path: root/src/layout
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-11-07 19:02:13 +0100
committerLaurenz <laurmaedje@gmail.com>2019-11-07 19:07:11 +0100
commit1ece263579afcf94ca44acc8e157bce01c3226b8 (patch)
tree6da8a7b03bf2138efb728d20f506aec3557afe5c /src/layout
parent271af7ed0308c9eca7da5dce93d52d38be84889f (diff)
Create easy-to-use argument parser 💎
Diffstat (limited to 'src/layout')
-rw-r--r--src/layout/actions.rs2
-rw-r--r--src/layout/stacked.rs2
-rw-r--r--src/layout/tree.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/layout/actions.rs b/src/layout/actions.rs
index 67ad48b4..707d6113 100644
--- a/src/layout/actions.rs
+++ b/src/layout/actions.rs
@@ -62,7 +62,7 @@ debug_display!(LayoutAction);
/// content is written.
///
/// Furthermore, the action list can translate absolute position into a coordinate system
-/// with a different. This is realized in the `add_box` method, which allows a layout to
+/// with a different origin. This is realized in the `add_box` method, which allows a layout to
/// be added at a position, effectively translating all movement actions inside the layout
/// by the position.
#[derive(Debug, Clone)]
diff --git a/src/layout/stacked.rs b/src/layout/stacked.rs
index 7521967b..379579f5 100644
--- a/src/layout/stacked.rs
+++ b/src/layout/stacked.rs
@@ -2,7 +2,7 @@ use super::*;
/// Layouts boxes stack-like.
///
-/// The boxes are arranged vertically, each layout gettings it's own "line".
+/// The boxes are arranged along an axis, each layout gettings it's own "line".
#[derive(Debug, Clone)]
pub struct StackLayouter {
ctx: StackContext,
diff --git a/src/layout/tree.rs b/src/layout/tree.rs
index 131570df..1d88751f 100644
--- a/src/layout/tree.rs
+++ b/src/layout/tree.rs
@@ -108,7 +108,7 @@ impl<'a, 'p> TreeLayouter<'a, 'p> {
for command in commands {
match command {
- Command::Layout(tree) => self.layout(tree)?,
+ Command::LayoutTree(tree) => self.layout(tree)?,
Command::Add(layout) => {
self.finish_flex()?;