Fix typos (#1505)
This commit is contained in:
parent
aaa4f4e872
commit
4c22996e11
|
@ -477,7 +477,7 @@ truc = "default"
|
||||||
assert_eq!(extra["hello"].as_str().unwrap(), "world".to_string());
|
assert_eq!(extra["hello"].as_str().unwrap(), "world".to_string());
|
||||||
assert_eq!(extra["a_value"].as_integer().unwrap(), 10);
|
assert_eq!(extra["a_value"].as_integer().unwrap(), 10);
|
||||||
assert_eq!(extra["sub"]["foo"].as_str().unwrap(), "bar".to_string());
|
assert_eq!(extra["sub"]["foo"].as_str().unwrap(), "bar".to_string());
|
||||||
assert_eq!(extra["sub"].get("truc").expect("The whole extra.sub table was overriden by theme data, discarding extra.sub.truc").as_str().unwrap(), "default".to_string());
|
assert_eq!(extra["sub"].get("truc").expect("The whole extra.sub table was overridden by theme data, discarding extra.sub.truc").as_str().unwrap(), "default".to_string());
|
||||||
assert_eq!(extra["sub"]["sub"]["foo"].as_str().unwrap(), "bar".to_string());
|
assert_eq!(extra["sub"]["sub"]["foo"].as_str().unwrap(), "bar".to_string());
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
extra["sub"]["sub"]
|
extra["sub"]["sub"]
|
||||||
|
|
|
@ -82,7 +82,7 @@ pub fn check_internal_links_with_anchors(site: &Site) -> Result<()> {
|
||||||
// Finally emit a summary, and return overall anchors-checking result.
|
// Finally emit a summary, and return overall anchors-checking result.
|
||||||
match errors.len() {
|
match errors.len() {
|
||||||
0 => {
|
0 => {
|
||||||
println!("> Succesfully checked {} internal link(s) with anchors.", anchors_total);
|
println!("> Successfully checked {} internal link(s) with anchors.", anchors_total);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
errors_total => {
|
errors_total => {
|
||||||
|
|
Loading…
Reference in a new issue