style: better comments for cache.find

This commit is contained in:
Folke Lemaitre 2023-03-16 23:53:36 +01:00
parent 2e3c16e526
commit b4b11f48aa
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 3 additions and 3 deletions

View File

@ -274,9 +274,9 @@ end
--- - rtp: (boolean) Search for modname in the runtime path (defaults to `true`) --- - rtp: (boolean) Search for modname in the runtime path (defaults to `true`)
--- - paths: (string[]) Extra paths to search for modname (defaults to `{}`) --- - paths: (string[]) Extra paths to search for modname (defaults to `{}`)
--- - patterns: (string[]) List of patterns to use when searching for modules. --- - patterns: (string[]) List of patterns to use when searching for modules.
-- A pattern is a string added to the basename of the Lua module being searched. --- A pattern is a string added to the basename of the Lua module being searched.
-- (defaults to `{"/init.lua", ".lua"}`) --- (defaults to `{"/init.lua", ".lua"}`)
-- - all: (boolean) Return all matches instead of just the first one (defaults to `false`) --- - all: (boolean) Return all matches instead of just the first one (defaults to `false`)
---@return ModuleInfo[] (list) A list of results with the following properties: ---@return ModuleInfo[] (list) A list of results with the following properties:
--- - modpath: (string) the path to the module --- - modpath: (string) the path to the module
--- - modname: (string) the name of the module --- - modname: (string) the name of the module