Skip to content

Commit

Permalink
style: better comments for cache.find
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Mar 16, 2023
1 parent 2e3c16e commit b4b11f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/lazy/core/cache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ end
--- - rtp: (boolean) Search for modname in the runtime path (defaults to `true`)
--- - paths: (string[]) Extra paths to search for modname (defaults to `{}`)
--- - 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.
-- (defaults to `{"/init.lua", ".lua"}`)
-- - all: (boolean) Return all matches instead of just the first one (defaults to `false`)
--- A pattern is a string added to the basename of the Lua module being searched.
--- (defaults to `{"/init.lua", ".lua"}`)
--- - 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:
--- - modpath: (string) the path to the module
--- - modname: (string) the name of the module
Expand Down

0 comments on commit b4b11f4

Please sign in to comment.