Skip to content

Invert the argExpected condition to match Lua docs#98

Merged
natecraddock merged 1 commit intonatecraddock:mainfrom
luchak:fix-argexpected-sense
Sep 25, 2024
Merged

Invert the argExpected condition to match Lua docs#98
natecraddock merged 1 commit intonatecraddock:mainfrom
luchak:fix-argexpected-sense

Conversation

@luchak
Copy link
Contributor

@luchak luchak commented Sep 24, 2024

The new behavior matches my reading of the 5.4 docs (https://www.lua.org/manual/5.4/manual.html#luaL_argexpected) and the sense of argCheck, so I don't think the old behavior was intentional?

@natecraddock
Copy link
Owner

I previously made a similar fix for argCheck in 00abb7d. So yes, this does look correct to me. Thanks for catching this!

@natecraddock natecraddock merged commit d105efd into natecraddock:main Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants