summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-01-28 16:56:28 +0100
committerLaurenz <laurmaedje@gmail.com>2023-01-28 16:56:28 +0100
commit2d56e3c5e245bf8824bf0ea8f1f1a05cb9716dc5 (patch)
tree3bda349220d965581fc71fb9feb2b41cbdf06957
parent4809e685a231a3ade2c78b75685ee859196c38c1 (diff)
Fix typos
-rw-r--r--library/src/math/style.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/src/math/style.rs b/library/src/math/style.rs
index cebb1534..d10230f9 100644
--- a/library/src/math/style.rs
+++ b/library/src/math/style.rs
@@ -289,7 +289,7 @@ pub struct MathStyle {
pub cramped: bool,
/// Whether to use bold glyphs.
pub bold: bool,
- /// Wherher to use italic glyphs.
+ /// Whether to use italic glyphs.
pub italic: bool,
}
@@ -319,17 +319,17 @@ impl MathStyle {
Self { size, ..self }
}
- /// This style, with `cramped` set to given value.
+ /// This style, with `cramped` set to the given value.
pub fn with_cramped(self, cramped: bool) -> Self {
Self { cramped, ..self }
}
- /// This style, with `bold` set to given value.
+ /// This style, with `bold` set to the given value.
pub fn with_bold(self, bold: bool) -> Self {
Self { bold, ..self }
}
- /// This style, with `italic` set to given value.
+ /// This style, with `italic` set to the given value.
pub fn with_italic(self, italic: bool) -> Self {
Self { italic, ..self }
}