From 487d3bfd7d9246d906abfd8adfaa46fa0ebcf77e Mon Sep 17 00:00:00 2001 From: Ben Greenman Date: Sat, 28 Sep 2019 23:22:46 -0400 Subject: [PATCH] doc: fix regexp-try-match range contract closes #2816 --- pkgs/racket-doc/scribblings/reference/regexps.scrbl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkgs/racket-doc/scribblings/reference/regexps.scrbl b/pkgs/racket-doc/scribblings/reference/regexps.scrbl index c8d1377fe3..94adf3798a 100644 --- a/pkgs/racket-doc/scribblings/reference/regexps.scrbl +++ b/pkgs/racket-doc/scribblings/reference/regexps.scrbl @@ -512,10 +512,7 @@ return @emph{only} the separators, making such uses equivalent to [end-pos (or/c exact-nonnegative-integer? #f) #f] [output-port (or/c output-port? #f) #f] [input-prefix bytes? #""]) - (if (and (or (string? pattern) (regexp? pattern)) - (string? input)) - (or/c #f (cons/c string? (listof (or/c string? #f)))) - (or/c #f (cons/c bytes? (listof (or/c bytes? #f)))))]{ + (or/c #f (cons/c bytes? (listof (or/c bytes? #f))))]{ Like @racket[regexp-match] on input ports, except that if the match fails, no characters are read and discarded from @racket[in].