Skip to content

Commit

Permalink
doc: fix types in regexp constructors
Browse files Browse the repository at this point in the history
- change return types of `pregexp` etc. to use the right predicate
- change input of `byte-regexp` and `byte-pregexp` from `string?` to `bytes?`
  • Loading branch information
bennn committed Dec 13, 2016
1 parent e0ccdc7 commit 8de6f58
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pkgs/racket-doc/scribblings/reference/regexps.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ the source string for a @tech{regexp value}.

@history[#:changed "6.5.0.1" @elem{Added the @racket[handler] argument.}]}

@defproc*[([(pregexp [str string?]) regexp?]
@defproc*[([(pregexp [str string?]) pregexp?]
[(pregexp [str string?]
[handler (or/c #f (string? -> any))])
any])]{
Expand All @@ -246,9 +246,9 @@ Like @racket[regexp], except that it uses a slightly different syntax

@history[#:changed "6.5.0.1" @elem{Added the @racket[handler] argument.}]}

@defproc*[([(byte-regexp [str string?]) regexp?]
[(byte-regexp [str string?]
[handler (or/c #f (string? -> any))])
@defproc*[([(byte-regexp [bstr bytes?]) byte-regexp?]
[(byte-regexp [bstr bytes?]
[handler (or/c #f (bytes? -> any))])
any])]{

Takes a byte-string representation of a regular expression (using the
Expand All @@ -270,9 +270,9 @@ returns the source byte string for a @tech{regexp value}.

@history[#:changed "6.5.0.1" @elem{Added the @racket[handler] argument.}]}

@defproc*[([(byte-pregexp [str string?]) regexp?]
[(byte-pregexp [str string?]
[handler (or/c #f (string? -> any))])
@defproc*[([(byte-pregexp [bstr bytes?]) byte-pregexp?]
[(byte-pregexp [bstr bytes?]
[handler (or/c #f (bytes? -> any))])
any])]{

Like @racket[byte-regexp], except that it uses a slightly different
Expand Down

0 comments on commit 8de6f58

Please sign in to comment.