Skip to content

Commit ff13e9e

Browse files
authored
Merge pull request EmmyLuaLs#1093 from tinyleolin/enhance-os-date-annotations
fix: make format parameter optional in os.date function
2 parents b41330a + fa4d58b commit ff13e9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • crates/emmylua_code_analysis/resources/std

crates/emmylua_code_analysis/resources/std/os.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function os.clock() end
7878
--- reliance on C function `gmtime` and C function `localtime`.
7979
--- @overload fun(fmt: "*t", time?: number): std.osdate
8080
--- @overload fun(fmt: "!*t", time?: number): std.osdate
81-
--- @param format string
81+
--- @param format? string
8282
--- @param time? number
8383
--- @return string
8484
function os.date(format, time) end

0 commit comments

Comments
 (0)