From a190ecfb7b1272685718fb610144e88c0c5db5d9 Mon Sep 17 00:00:00 2001 From: Vincent St-Amour Date: Wed, 8 Aug 2012 17:24:18 -0400 Subject: [PATCH] Fic generics docs. Closes PR 12988. --- collects/scribblings/reference/dicts.scrbl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/collects/scribblings/reference/dicts.scrbl b/collects/scribblings/reference/dicts.scrbl index dc32273731..2c509854d8 100644 --- a/collects/scribblings/reference/dicts.scrbl +++ b/collects/scribblings/reference/dicts.scrbl @@ -583,10 +583,9 @@ type. The following methods can be implemented: (remove* (assoc key al) al)) (define (dict-count dict #:default [x #f]) (or x - (length (remove-duplicates (alist-v dict) #:key car)))) - (code:comment "etc. other methods")]) + (length (remove-duplicates (alist-v dict) #:key car))))]) (code:comment "etc. other methods") - (define d1 '((1 . a) (2 . b))) + (define d1 (alist '((1 . a) (2 . b)))) (dict? d1) (dict-ref d1 1) ]