From 1ca8b6d533a0838080005434853726a11da6e50f Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Wed, 2 Aug 2017 07:30:57 -0600 Subject: [PATCH] bytes-utf-8-length: fix result contract in docs --- pkgs/racket-doc/scribblings/reference/bytes.scrbl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/racket-doc/scribblings/reference/bytes.scrbl b/pkgs/racket-doc/scribblings/reference/bytes.scrbl index 3986a17a62..b57634c94b 100644 --- a/pkgs/racket-doc/scribblings/reference/bytes.scrbl +++ b/pkgs/racket-doc/scribblings/reference/bytes.scrbl @@ -344,7 +344,7 @@ For communication among @tech{places}, the new byte string is allocated in the [err-char (or/c #f char?) #f] [start exact-nonnegative-integer? 0] [end exact-nonnegative-integer? (bytes-length bstr)]) - exact-nonnegative-integer?]{ + (or/c exact-nonnegative-integer? #f)]{ Returns the length in characters of the UTF-8 decoding of @racket[bstr]'s substring from @racket[start] to @racket[end], but without actually generating the decoded characters. If @racket[err-char] is