mirror of
https://github.com/janet-lang/janet
synced 2024-11-04 15:56:17 +00:00
Merge pull request #721 from uvtc/patch-1
docs for doc, searching for strings
This commit is contained in:
commit
40561340a8
@ -3053,10 +3053,10 @@
|
|||||||
(print-index identity)))
|
(print-index identity)))
|
||||||
|
|
||||||
(defmacro doc
|
(defmacro doc
|
||||||
`Shows documentation for the given symbol, or can show a list of available bindings.
|
``Shows documentation for the given symbol, or can show a list of available bindings.
|
||||||
If sym is a symbol, will look for documentation for that symbol. If sym is a string
|
If `sym` is a symbol, will look for documentation for that symbol. If `sym` is a string
|
||||||
or is not provided, will show all lexical and dynamic bindings in the current environment with
|
or is not provided, will show all lexical and dynamic bindings in the current environment
|
||||||
that prefix (all bindings will be shown if no prefix is given).`
|
containing that string (all bindings will be shown if no string is given).``
|
||||||
[&opt sym]
|
[&opt sym]
|
||||||
~(,doc* ',sym))
|
~(,doc* ',sym))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user