We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6c4e028 + ec4ea7d commit 4ec40beCopy full SHA for 4ec40be
crates/core/src/yarn_fn/function_wrapping.rs
@@ -243,7 +243,7 @@ mod bevy_functions {
243
#[allow(unused)]
244
let input_len = input.len();
245
let expected_len = count_tts!($($yarn_param),*);
246
- assert!(input_len != expected_len, "YarnFn expected {expected_len} arguments but received {input_len}");
+ assert!(input_len == expected_len, "YarnFn expected {expected_len} arguments but received {input_len}");
247
$(
248
let $yarn_param:$yarn_param = $yarn_param::try_from(input.pop_front().unwrap()).ok().expect("Invalid argument type");
249
)*
0 commit comments