We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee7e0f4 commit a28dc91Copy full SHA for a28dc91
src/translation.rs
@@ -75,8 +75,8 @@ impl Translation {
75
let body = reqwest::blocking::get(translate_url)?.text()?;
76
let before_trans = "class=\"result-container\">";
77
let after_trans="</div>";
78
- let mut translated = &body[(body.find(before_trans).ok_or("Can not parse google translate ansver")? + before_trans.len())..];
79
- translated = &translated[..translated.find(after_trans).ok_or("Can not parse google translate ansver")?];
+ let mut translated = &body[(body.find(before_trans).ok_or("Can not parse google translate answer")? + before_trans.len())..];
+ translated = &translated[..translated.find(after_trans).ok_or("Can not parse google translate answer")?];
80
Ok(String::from(translated))
81
}
82
0 commit comments