]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/treesit.el (treesit-node-at): Fix typo.
authorYuan Fu <casouri@gmail.com>
Sat, 14 May 2022 15:57:23 +0000 (08:57 -0700)
committerYuan Fu <casouri@gmail.com>
Sat, 14 May 2022 15:57:23 +0000 (08:57 -0700)
lisp/treesit.el

index 1cfdab95ca8b49255239f452653a0c171f8170d7..3313168d667e53bdf007518594f8fb92b4cefe14 100644 (file)
@@ -142,7 +142,7 @@ that language in the current buffer, and use that."
   (let ((node (if (treesit-parser-p parser-or-lang)
                   (treesit-parser-root-node parser-or-lang)
                 (treesit-buffer-root-node parser-or-lang))))
-    ;; TODO: We might want a `treesit-node-decendant-for-pos' in C.
+    ;; TODO: We might want a `treesit-node-descendant-for-pos' in C.
     (while (cond ((and node (< (treesit-node-end node) point))
                   (setq node (treesit-node-next-sibling node))
                   t)