diff --git a/collects/scribblings/reference/bytes.scrbl b/collects/scribblings/reference/bytes.scrbl index d5e5fddca3..f3d9465309 100644 --- a/collects/scribblings/reference/bytes.scrbl +++ b/collects/scribblings/reference/bytes.scrbl @@ -95,7 +95,7 @@ positions are initialized with the given @scheme[b]s. bytes long, and that contains the same bytes as @scheme[bstr] from @scheme[start] inclusive to @scheme[end] exclusive. The @scheme[start] and @scheme[end] arguments must be less than the length of - @scheme[bstr], and @scheme[end] must be greater than or equal to @scheme[bstr], + @scheme[bstr], and @scheme[end] must be greater than or equal to @scheme[start], otherwise the @exnraise[exn:fail:contract]. @mz-examples[(subbytes #"Apple" 1 3) diff --git a/collects/scribblings/reference/strings.scrbl b/collects/scribblings/reference/strings.scrbl index 0bd7336473..de46ec1daf 100644 --- a/collects/scribblings/reference/strings.scrbl +++ b/collects/scribblings/reference/strings.scrbl @@ -88,7 +88,7 @@ Returns an immutable string with the same content as characters long, and that contains the same characters as @scheme[str] from @scheme[start] inclusive to @scheme[end] exclusive. The @scheme[start] and @scheme[end] arguments must be less than the length of - @scheme[str], and @scheme[end] must be greater than or equal to @scheme[str], + @scheme[str], and @scheme[end] must be greater than or equal to @scheme[start], otherwise the @exnraise[exn:fail:contract]. @mz-examples[(substring "Apple" 1 3)