doc: fix regexp-try-match range contract

closes #2816
This commit is contained in:
Ben Greenman 2019-09-28 23:22:46 -04:00 committed by GitHub
parent a20a27f5b0
commit 487d3bfd7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -512,10 +512,7 @@ return @emph{only} the separators, making such uses equivalent to
[end-pos (or/c exact-nonnegative-integer? #f) #f] [end-pos (or/c exact-nonnegative-integer? #f) #f]
[output-port (or/c output-port? #f) #f] [output-port (or/c output-port? #f) #f]
[input-prefix bytes? #""]) [input-prefix bytes? #""])
(if (and (or (string? pattern) (regexp? pattern)) (or/c #f (cons/c bytes? (listof (or/c bytes? #f))))]{
(string? input))
(or/c #f (cons/c string? (listof (or/c string? #f))))
(or/c #f (cons/c bytes? (listof (or/c bytes? #f)))))]{
Like @racket[regexp-match] on input ports, except that if the match Like @racket[regexp-match] on input ports, except that if the match
fails, no characters are read and discarded from @racket[in]. fails, no characters are read and discarded from @racket[in].