Skip to content

Commit

Permalink
Update src/modules/function/declaration_utils.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Phoenix Himself <[email protected]>
  • Loading branch information
b1ek and Ph0enixKM authored Dec 25, 2024
1 parent d7f268c commit 6d70fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/function/declaration_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn skip_function_body(
"}" => scope -= 1,
"fail" => {
if !declared_failable && returns_tok.is_some() {
return error!(meta, Some(tok), "Functions that can fail must have a '?' after the type name");
return error!(meta, Some(tok), "Failable functions must have a '?' after the type name");
}
is_failable = true
},
Expand Down

0 comments on commit 6d70fe2

Please sign in to comment.