diff options
Diffstat (limited to 'library/src/layout')
| -rw-r--r-- | library/src/layout/flow.rs | 2 | ||||
| -rw-r--r-- | library/src/layout/grid.rs | 2 | ||||
| -rw-r--r-- | library/src/layout/par.rs | 4 | ||||
| -rw-r--r-- | library/src/layout/stack.rs | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/library/src/layout/flow.rs b/library/src/layout/flow.rs index b6476816..da2ddba6 100644 --- a/library/src/layout/flow.rs +++ b/library/src/layout/flow.rs @@ -75,7 +75,7 @@ struct FlowLayouter<'a> { regions: Regions<'a>, /// Whether the flow should expand to fill the region. expand: Axes<bool>, - /// The intial size of `regions.size` that was available before we started + /// The initial size of `regions.size` that was available before we started /// subtracting. initial: Size, /// Whether the last block was a paragraph. diff --git a/library/src/layout/grid.rs b/library/src/layout/grid.rs index 5c3d132e..e0c8b684 100644 --- a/library/src/layout/grid.rs +++ b/library/src/layout/grid.rs @@ -659,7 +659,7 @@ impl<'a, 'v> GridLayouter<'a, 'v> { assert!(x < self.cols.len()); assert!(y < self.rows.len()); - // Columns are reorded, but the cell slice is not. + // Columns are reorder, but the cell slice is not. if self.is_rtl { x = self.cols.len() - 1 - x; } diff --git a/library/src/layout/par.rs b/library/src/layout/par.rs index db65b125..dc445c86 100644 --- a/library/src/layout/par.rs +++ b/library/src/layout/par.rs @@ -395,7 +395,7 @@ impl SpanMapper { /// A layouted line, consisting of a sequence of layouted paragraph items that /// are mostly borrowed from the preparation phase. This type enables you to -/// measure the size of a line in a range before comitting to building the +/// measure the size of a line in a range before committing to building the /// line's frame. /// /// At most two paragraph items must be created individually for this line: The @@ -889,7 +889,7 @@ fn linebreak_optimized<'a>(vt: &Vt, p: &'a Preparation<'a>, width: Abs) -> Vec<L // The line is overfull. This is the case if // - justification is on, but we'd need to shrink too much // - justification is off and the line just doesn't fit - // Since any longer line will also be overfull, we can deactive + // Since any longer line will also be overfull, we can deactivate // this breakpoint. active = i + 1; MAX_COST diff --git a/library/src/layout/stack.rs b/library/src/layout/stack.rs index 77cd3f8f..b17104df 100644 --- a/library/src/layout/stack.rs +++ b/library/src/layout/stack.rs @@ -233,7 +233,7 @@ impl<'a> StackLayouter<'a> { /// Advance to the next region. fn finish_region(&mut self) { - // Determine the size of the stack in this region dependening on whether + // Determine the size of the stack in this region depending on whether // the region expands. let mut size = self .expand |
