Skip to content

Commit 92ecc37

Browse files
committed
symbol keys
1 parent fe031bb commit 92ecc37

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

drracket-core-lib/drracket/private/frame.rkt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@
775775
(call-read-language irl
776776
'documentation-language-family
777777
(hash)))
778-
(hash-ref ht "doc-language-name" default-lang-name)]
778+
(hash-ref ht 'doc-language-name default-lang-name)]
779779
[else default-lang-name]))
780780
(format (string-constant x-documentation) lang-name))
781781
(new menu-item%
@@ -787,8 +787,8 @@
787787
[callback (λ (item evt)
788788
(define irl (maybe-get-irl))
789789
(define ht (call-read-language irl 'documentation-language-family (hash)))
790-
(help:help-desk #:sub (hash-ref ht "doc-path" "index.html")
791-
#:query-table (hash-ref ht "doc-query" (hash)))
790+
(help:help-desk #:sub (hash-ref ht 'doc-path "index.html")
791+
#:query-table (hash-ref ht 'doc-query (hash)))
792792
#t)]))
793793

794794
(define (drracket-help-menu:after-about menu dlg-parent)
@@ -830,8 +830,8 @@
830830
'documentation-language-family
831831
(hash))
832832
(hash)))
833-
(values (hash-ref ht "doc-query" (hash))
834-
(hash-ref ht "doc-path" "index.html"))))
833+
(values (hash-ref ht 'doc-query (hash))
834+
(hash-ref ht 'doc-path "index.html"))))
835835

836836

837837
(require (submod "." add-racket-to-path)

drracket-core-lib/drracket/private/in-irl-namespace.rkt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,12 @@
247247
string?)))))]
248248
[(documentation-language-family)
249249
(hash/dc
250-
[key string?]
250+
[key symbol?]
251251
[val (key)
252252
(case key
253-
[("doc-language-name") string?]
254-
[("doc-path") path-string?]
255-
[("doc-query") (hash/c string? string? #:immutable #t)]
253+
[(doc-language-name) string?]
254+
[(doc-path) path-string?]
255+
[(doc-query) (hash/c symbol? string? #:immutable #t)]
256256
[else any/c])]
257257
#:immutable #t)]
258258
[else

drracket-core/scribblings/tools/lang-tools.scrbl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -591,12 +591,12 @@ find a prefix and extract the subsequent name:
591591
This is the contract:
592592
@racketblock[
593593
(hash/dc
594-
[key string?]
594+
[key symbol?]
595595
[val (key)
596596
(case key
597-
[("doc-language-name") string?]
598-
[("doc-path") path-string?]
599-
[("doc-query") (hash/c string? string? #:immutable #t)]
597+
[(doc-language-name) string?]
598+
[(doc-path) path-string?]
599+
[(doc-query) (hash/c symbol? string? #:immutable #t)]
600600
[else any/c])]
601601
#:immutable #t)
602602
]

0 commit comments

Comments
 (0)