1
0
mirror of https://github.com/janet-lang/janet synced 2025-01-14 09:25:41 +00:00

Merge pull request #622 from sogaiu/tweak-add-paths-docstring

Tweak module/add-paths docstring
This commit is contained in:
Calvin Rose 2021-02-04 19:05:34 -06:00 committed by GitHub
commit 54c66ecfc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2314,11 +2314,11 @@
(defn module/add-paths
```
Add paths to module/paths for a given loader such that
Add paths to `module/paths` for a given loader such that
the generated paths behave like other module types, including
relative imports and syspath imports. ext is the file extension
to associate with this module type, including the dot. loader is the
keyword name of a loader that is module/loaders. Returns the modified module/paths.
relative imports and syspath imports. `ext` is the file extension
to associate with this module type, including the dot. `loader` is the
keyword name of a loader in `module/loaders`. Returns the modified `module/paths`.
```
[ext loader]
(defn- find-prefix