diff --git a/api.lua b/api.lua index 62e8c8f..6c718d9 100644 --- a/api.lua +++ b/api.lua @@ -59,7 +59,7 @@ end -- @function wconfig.write -- @tparam string fname Base filename with optional directory structure (e.g. "my_mod/my_config"). -- @tparam table data Table data to be written to config file. --- @tparam bool styled Outputs in a human-readable format if this is set (default: `true`). +-- @tparam[opt] bool styled Outputs in a human-readable format if this is set (default: `true`). -- @treturn bool `true` if succeeded, `false` if not. function wconfig.write(fname, data, styled) styled = styled ~= false diff --git a/docs/api.html b/docs/api.html index b547dcd..6b876ac 100644 --- a/docs/api.html +++ b/docs/api.html @@ -58,7 +58,7 @@
true
).
+ (optional)