emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/racket-mode 26c05316da 5/8: Improve comment


From: ELPA Syncer
Subject: [nongnu] elpa/racket-mode 26c05316da 5/8: Improve comment
Date: Fri, 22 Nov 2024 19:00:44 -0500 (EST)

branch: elpa/racket-mode
commit 26c05316dabd99d58eb4a56aaada0839f48fb8e6
Author: Greg Hendershott <git@greghendershott.com>
Commit: Greg Hendershott <git@greghendershott.com>

    Improve comment
    
    Also move it above function it was describing.
---
 racket/scribble.rkt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/racket/scribble.rkt b/racket/scribble.rkt
index a6d50897ac..2af4eaf2f1 100644
--- a/racket/scribble.rkt
+++ b/racket/scribble.rkt
@@ -121,6 +121,9 @@
     (refresh-doc-index!))
   (trie-find doc-index-trie-root prefix limit))
 
+;; Find values for all nodes for which `prefix` is an exact match, and
+;; up to `limit` nodes for which `prefix` is an initial match.
+;; Oriented toward producing completion candidates.
 (define (trie-find root prefix limit)
   (match (string->list prefix)
     [(list)
@@ -144,8 +147,6 @@
           (find! sub more)]))
      (set->list results)]))
 
-;; Find values for all nodes for which `prefix` is an exact full or
-;; prefix match -- for use producing completion candidates.
 (define (trie-add! root str value)
   (let add! ([n   root]
              [chs (string->list str)])



reply via email to

[Prev in Thread] Current Thread [Next in Thread]