What's wrong with this snippet? #946
-
I swear I tried every possible fix, but I can't figure out what is wrong with this: s(
{ trig = "enum", dscr = "complete enum" },
fmta([[
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord, Display)]
pub enum <> {
<>
}
]], i(1), i(0))
), It keeps complaining about
What key 2? I only have two format arguments, what is this thing missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
I can't express how angry I am right now... turns out the problem whas that arguments must be supplied in a table. |
Beta Was this translation helpful? Give feedback.
I can't express how angry I am right now... turns out the problem whas that arguments must be supplied in a table.
I copy pasted previous snippets that only had one argument, and, because only Lua gods know why, it was working, but as soon as it requires more than one argument, it fails miserably. Sometimes I wish lua was not so weak in terms of function arguments. An error saying "You must provide a table as second argument" would have been soooo much more useful...