Skip to content

Commit

Permalink
update text for type arguments error (FuelLabs#1670)
Browse files Browse the repository at this point in the history
  • Loading branch information
sezna authored May 25, 2022
1 parent 4ab5db5 commit cbc5c68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sway-core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ pub enum CompileError {
missing_functions: String,
span: Span,
},
#[error("Expected {expected} type arguments, but instead found {given}.")]
#[error("Expected {} type {}, but instead found {}.", expected, if *expected == 1usize { "argument" } else { "arguments" }, given)]
IncorrectNumberOfTypeArguments {
given: usize,
expected: usize,
Expand Down

0 comments on commit cbc5c68

Please sign in to comment.