Fix typo in conformance errors

This commit is contained in:
Tiffany Bennett 2016-09-06 22:42:59 -04:00
parent 3e13779f81
commit 3c5106d7e9
2 changed files with 2 additions and 2 deletions

View file

@ -441,7 +441,7 @@ impl Context {
false => "multiply",
true => "divide"
};
suggestions.push(format!("{word} left side by {}", desc.trim(), word=word));
suggestions.push(format!("{word} right side by {}", desc.trim(), word=word));
}
ConformanceError {

View file

@ -107,7 +107,7 @@ fn test_factorize() {
fn test_conformance() {
test("W -> J",
"Conformance error: 1 watt (power) != 1 joule (energy)\n\
Suggestions: multiply left side by time, multiply left side by frequency");
Suggestions: multiply left side by time, multiply right side by frequency");
}
#[test]