Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored and snshn committed Mar 29, 2024
1 parent 174cb50 commit 6798cad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ pub fn embed_srcset(
&image_data,
&image_final_url,
);
// Append retreved asset as a data URL
// Append retrieved asset as a data URL
image_data_url.set_fragment(image_full_url.fragment());
result.push_str(image_data_url.as_ref());
}
Expand Down
4 changes: 2 additions & 2 deletions tests/cli/unusual_encodings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ mod passing {
)
);

// STDOUT should contain original document without any modificatons
// STDOUT should contain original document without any modifications
let s: String;
if let Some(encoding) = Encoding::for_label(b"gb2312") {
let (string, _, _) = encoding.decode(&out.stdout);
Expand Down Expand Up @@ -135,7 +135,7 @@ mod passing {
)
);

// STDOUT should contain original document without any modificatons
// STDOUT should contain original document without any modifications
assert_eq!(
String::from_utf8_lossy(&out.stdout).to_string(),
"<html>\
Expand Down
6 changes: 3 additions & 3 deletions tests/css/is_image_url_prop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ mod passing {
use monolith::css;

#[test]
fn backrgound() {
fn background() {
assert!(css::is_image_url_prop("background"));
}

#[test]
fn backrgound_image() {
fn background_image() {
assert!(css::is_image_url_prop("background-image"));
}

#[test]
fn backrgound_image_uppercase() {
fn background_image_uppercase() {
assert!(css::is_image_url_prop("BACKGROUND-IMAGE"));
}

Expand Down

0 comments on commit 6798cad

Please sign in to comment.