Skip to content

Commit

Permalink
Fix field version is in the latest version a string not a function #15
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef-Friedrich committed Jul 12, 2024
1 parent 1947b5b commit 36adfea
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions library/lpeg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,14 @@ function Pattern:match(subject, init, ...) end
function lpeg.type(value) end

---
---Return a string with the running version of LPeg.
---A string (not a function) with the running version of LPeg.
---
---@return string
---Note: In earlier versions of LPeg this field was a function.
---
---@type string
---
---😱 [Types](https://github.com/LuaCATS/lpeg/blob/main/library/lpeg.lua) incomplete or incorrect? 🙏 [Please contribute!](https://github.com/LuaCATS/lpeg/pulls)
function lpeg.version() end
lpeg.version = ''

---
---Set a limit for the size of the backtrack stack used by LPeg to
Expand Down

0 comments on commit 36adfea

Please sign in to comment.