davisdude/mlib

mlib.subtract is exported, but nil -- subtractVector isn't defined

idbrii opened this issue · 1 comments

mlib exports a function that isn't defined:

	vec2 = {
        -- ...

        -- Aliases
        copy = cloneVector,
        subtract = subtractVector,  -- <-----
        multiply = mulVector,
        -- ...
	},
}

subtractVector is not defined in the file.

https://github.com/davisdude/mlib/blob/master/mlib.lua#L1397

I only noticed because luacheck caught it. Removing the export is fine by me.

Thanks for catching this! It should be fixed now - let me know if it's still causing issues.