mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-13 23:17:05 +00:00
Fix typo in conformance errors
This commit is contained in:
parent
3e13779f81
commit
3c5106d7e9
2 changed files with 2 additions and 2 deletions
|
@ -441,7 +441,7 @@ impl Context {
|
||||||
false => "multiply",
|
false => "multiply",
|
||||||
true => "divide"
|
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 {
|
ConformanceError {
|
||||||
|
|
|
@ -107,7 +107,7 @@ fn test_factorize() {
|
||||||
fn test_conformance() {
|
fn test_conformance() {
|
||||||
test("W -> J",
|
test("W -> J",
|
||||||
"Conformance error: 1 watt (power) != 1 joule (energy)\n\
|
"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]
|
#[test]
|
||||||
|
|
Loading…
Reference in a new issue