Fix typos

master
Viktor Szépe 1 month ago committed by Sunshine
parent 174cb50877
commit 6798cad2b2

@ -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());
}

@ -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);
@ -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>\

@ -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"));
}

Loading…
Cancel
Save