Skip to content

Commit

Permalink
Fix typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Mar 14, 2024
1 parent 4bd98cb commit 52f5d08
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/designspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ pub struct Rule {
/// the rule is applied.
#[serde(rename = "conditionset")]
pub condition_sets: Vec<ConditionSet>,
/// Subtitutions (in, out).
/// Substitutions (in, out).
#[serde(rename = "sub")]
pub substitutions: Vec<Substitution>,
}
Expand Down
10 changes: 5 additions & 5 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ pub enum ErrorKind {
InvalidName,
/// Has an invalid lib.
BadLib,
/// Has an unexected duplicate value.
/// Has an unexpected duplicate value.
UnexpectedDuplicate,
/// Has an unexpected move definition.
UnexpectedMove,
Expand All @@ -550,7 +550,7 @@ pub enum ErrorKind {
TrailingOffCurves,
/// Has duplicate identifiers.
DuplicateIdentifier,
/// Has unexepected drawing data.
/// Has unexpected drawing data.
UnexpectedDrawing,
/// Has incomplete drawing data.
UnfinishedDrawing,
Expand All @@ -564,11 +564,11 @@ pub enum ErrorKind {
UnexpectedGuidelineField,
/// Has an unexpected image field.
UnexpectedImageField,
/// An element that can occur just once occured a second time.
/// An element that can occur just once occurred a second time.
DuplicateElement(&'static str),
/// An element that can occur just once occured a second time.
/// An element that can occur just once occurred a second time.
UnexpectedV1Element(&'static str),
/// An element that can occur just once occured a second time.
/// An element that can occur just once occurred a second time.
UnexpectedV1Attribute(&'static str),
/// A component had an empty `base` attribute.
ComponentEmptyBase,
Expand Down
2 changes: 1 addition & 1 deletion src/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub struct Font {
pub enum FormatVersion {
/// UFO specification major version 1. Only reading (and upconversion) is supported.
V1 = 1,
/// UFO specfication major version 2. Only reading (and upconversion) is supported.
/// UFO specification major version 2. Only reading (and upconversion) is supported.
V2 = 2,
/// UFO specification major version 3
V3 = 3,
Expand Down
8 changes: 4 additions & 4 deletions src/glyph/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ pub struct Anchor {
///
/// This attribute is only required when a lib is present and should otherwise only be added as needed.
identifier: Option<Identifier>,
/// Optional anchor lib for arbitary data.
/// Optional anchor lib for arbitrary data.
lib: Option<Plist>,
}

Expand All @@ -281,7 +281,7 @@ pub struct Component {
/// This attribute is only required when a lib is present and should otherwise only
/// be added as needed.
identifier: Option<Identifier>,
/// Optional lib for arbitary component data.
/// Optional lib for arbitrary component data.
lib: Option<Plist>,
}

Expand All @@ -295,7 +295,7 @@ pub struct Contour {
/// This attribute is only required when a lib is present and should otherwise only
/// be added as needed.
identifier: Option<Identifier>,
/// Optional lib for arbitary contour data.
/// Optional lib for arbitrary contour data.
lib: Option<Plist>,
}

Expand Down Expand Up @@ -375,7 +375,7 @@ pub struct ContourPoint {
///
/// This attribute is only required when a lib is present and should otherwise only be added as needed.
identifier: Option<Identifier>,
/// Optional lib for arbitary contour point data.
/// Optional lib for arbitrary contour point data.
lib: Option<Plist>,
}

Expand Down
2 changes: 1 addition & 1 deletion src/guideline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub struct Guideline {
/// Unique identifier for the guideline within the glyph. This attribute is only required
/// when a lib is present and should otherwise only be added as needed.
identifier: Option<Identifier>,
/// The guideline's lib for arbitary data.
/// The guideline's lib for arbitrary data.
lib: Option<Plist>,
}

Expand Down
2 changes: 1 addition & 1 deletion src/layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ mod tests {
assert_eq!(layerset.len(), 1);
assert_eq!(layerset.default_layer().len(), 48);

// all is overwridden by default_layer
// all is overridden by default_layer
let request = DataRequest::all().default_layer(true);
let layerset = LayerContents::load(ufo_path, &names, &request.layers).unwrap();
// default layer is always present
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Utilties for working with [Unified Font Object][ufo] files.
//! Utilities for working with [Unified Font Object][ufo] files.
//!
//! The types in this crate correspond to types described in the spec.
//!
Expand Down
2 changes: 1 addition & 1 deletion src/upconversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ pub(crate) fn upconvert_ufov1_robofab_data(
features.push('\n');

for key in order {
// Ignore non-existant keys because defcon does it, too.
// Ignore non-existent keys because defcon does it, too.
if let Some(txt) = features_split.get(&key) {
features.push_str(txt);
}
Expand Down
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ pub fn user_name_to_file_name(
result.truncate(result.len().saturating_sub(suffix.len()) - NUMBER_LEN);
}
if !found_unique {
// Note: if this is ever hit, try appending a UUIDv4 before panicing.
// Note: if this is ever hit, try appending a UUIDv4 before panicking.
panic!("Could not find a unique file name after 99 tries")
}
}
Expand Down

0 comments on commit 52f5d08

Please sign in to comment.