Skip to content

Commit

Permalink
Use actual contracts in json docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
stamourv committed Jul 7, 2017
1 parent 5f740ff commit 0f5e95e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/racket-doc/json/json.scrbl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#lang scribble/manual

@(require (for-label racket/base json))
@(require (for-label racket/base racket/contract json))

@(define website @link["http://json.org"]{JSON web site})
@(define rfc @link["http://www.ietf.org/rfc/rfc4627.txt"]{JSON RFC})
Expand Down Expand Up @@ -33,9 +33,9 @@ the @rfc for more information about JSON.
@item{the value of @racket[jsnull], @racket['null] by default}
@item{@racket[boolean?]}
@item{@racket[string?]}
@item{@racket[(or exact-integer? inexact-real?)]}
@item{@racket[(or/c exact-integer? inexact-real?)]}
@item{@racket[(listof jsexpr?)]}
@item{@racket[(hasheqof symbol? jsexpr?)]}]
@item{@racket[(and/c hash-eq? (hash/c symbol? jsexpr?))]}]

@examples[#:eval ev
(jsexpr? 'null)
Expand Down

0 comments on commit 0f5e95e

Please sign in to comment.