fix error message string

This commit is contained in:
Sebastien Bourdeauducq 2022-03-02 08:04:15 +08:00
parent d1e172501d
commit da039e3acf

View File

@ -806,7 +806,7 @@ impl TopLevelComposer {
.as_ref() .as_ref()
.ok_or_else(|| { .ok_or_else(|| {
format!( format!(
"function parameter `{}` at {} need type annotation", "function parameter `{}` needs type annotation at {}",
x.node.arg, x.location x.node.arg, x.location
) )
})? })?