; Fix some shortdoc issues unearthed by `shortdoc--check'

* lisp/emacs-lisp/shortdoc-doc.el (map, number): Fix issues.
* lisp/treesit.el (treesit): Fix issues.
This commit is contained in:
Jens Schmidt
2026-03-25 22:38:38 +01:00
parent 82882db8ed
commit bc27623057
2 changed files with 3 additions and 3 deletions

View File

@@ -100,7 +100,7 @@
:eval (map-contains-key [bar foo baz] 1)
:eval (map-contains-key #s(hash-table data (bar 1 foo 2 baz 3)) 'foo))
(map-put!
(map key value)
:args (map key value)
:eval
"(let ((map (list 'bar 1 'baz 3)))
(map-put! map 'foo 2)
@@ -1301,7 +1301,7 @@
:eval (let ((x 2)) (incf x 2) x))
(decf
:eval (let ((x 4)) (decf x) x)
:eval (let ((x 4)) (decf x 2)) x)
:eval (let ((x 4)) (decf x 2) x))
"Predicates"
(=
:args (number &rest numbers)

View File

@@ -5849,7 +5849,7 @@ language."
"Pattern matching"
(treesit-query-capture
:no-eval (treesit-query-capture node '((identifier) @id "return" @ret))
:eg-result-string "((id . #<treesit-node (identifier) in 195-196>) (ret . #<treesit-node "return" in 338-344>))")
:eg-result-string "((id . #<treesit-node (identifier) in 195-196>) (ret . #<treesit-node \"return\" in 338-344>))")
(treesit-query-compile
:no-eval (treesit-query-compile 'c '((identifier) @id "return" @ret))
:eg-result-string "#<treesit-compiled-query>")