summaryrefslogtreecommitdiff
path: root/library/src/layout/par.rs
diff options
context:
space:
mode:
authorKian-Meng Ang <kianmeng.ang@gmail.com>2023-03-22 16:02:51 +0800
committerGitHub <noreply@github.com>2023-03-22 09:02:51 +0100
commit25acefeb5b0cf0977ad01fe3128d494d9617a2cf (patch)
tree5f629b2aee909022be2be674a60d10fe59bc77c3 /library/src/layout/par.rs
parent26f4321a5e9eb56b905ca9eee9cf52422c7ff859 (diff)
Fix typos (#115)
Found via `codespell -S target -L crate,ist,thi,alle,dedented,ue,tung,nd,ende,overriden,dependant`
Diffstat (limited to 'library/src/layout/par.rs')
-rw-r--r--library/src/layout/par.rs4
1 files changed, 2 insertions, 2 deletions
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