Skip to content

Commit e4fda41

Browse files
authored
Correct some typos (typst#746)
1 parent 1198e0c commit e4fda41

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

library/src/compute/data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ fn convert_yaml(value: serde_yaml::Value) -> Value {
281281
}
282282
}
283283

284-
/// Converts an arbitary YAML mapping key into a Typst Dict Key.
284+
/// Converts an arbitrary YAML mapping key into a Typst Dict Key.
285285
/// Currently it only does so for strings, everything else
286286
/// returns None
287287
fn convert_yaml_key(key: serde_yaml::Value) -> Option<Str> {

library/src/meta/figure.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ use crate::visualize::ImageElem;
4242
/// )
4343
/// ```
4444
///
45-
/// This behaviour can be overridden by explictly specifying the figure's
45+
/// This behaviour can be overridden by explicitly specifying the figure's
4646
/// `kind`. All figures of the same kind share a common counter.
4747
///
4848
/// ## Modifying the appearance

library/src/meta/outline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::text::{LinebreakElem, SpaceElem, TextElem};
99

1010
/// A table of contents, figures, or other elements.
1111
///
12-
/// This function generates a list of all occurances of an element in the
12+
/// This function generates a list of all occurrences of an element in the
1313
/// document, up to a given depth. The element's numbering and page number will
1414
/// be displayed in the outline alongside its title or caption. By default this
1515
/// generates a table of contents.

src/export/render.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ fn render_outline_glyph(
297297
let c = color.to_rgba();
298298

299299
// Pad the pixmap with 1 pixel in each dimension so that we do
300-
// not get any problem with floating point errors along ther border
300+
// not get any problem with floating point errors along their border
301301
let mut pixmap = sk::Pixmap::new(mw + 2, mh + 2)?;
302302
for x in 0..mw {
303303
for y in 0..mh {

0 commit comments

Comments
 (0)