From 9f5e9c8db3bbb9dac57bcc3762ff09200803b710 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Tue, 10 Oct 2017 07:44:10 -0600 Subject: [PATCH] fix documented contract for `{absolute,relative,complete}-path?` They accept any string, instead of just path strings. --- pkgs/racket-doc/scribblings/reference/paths.scrbl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/racket-doc/scribblings/reference/paths.scrbl b/pkgs/racket-doc/scribblings/reference/paths.scrbl index 5ebfa8f89a..c517c0beb1 100644 --- a/pkgs/racket-doc/scribblings/reference/paths.scrbl +++ b/pkgs/racket-doc/scribblings/reference/paths.scrbl @@ -302,7 +302,7 @@ Windows examples. Like @racket[build-path], except a path convention type is specified explicitly.} -@defproc[(absolute-path? [path (or/c path-string? path-for-some-system?)]) boolean?]{ +@defproc[(absolute-path? [path (or/c path? string? path-for-some-system?)]) boolean?]{ Returns @racket[#t] if @racket[path] is an absolute path, @racket[#f] otherwise. The @racket[path] argument can be a path for any @@ -311,7 +311,7 @@ contains a nul character), @racket[#f] is returned. This procedure does not access the filesystem.} -@defproc[(relative-path? [path (or/c path-string? path-for-some-system?)]) boolean?]{ +@defproc[(relative-path? [path (or/c path? string? path-for-some-system?)]) boolean?]{ Returns @racket[#t] if @racket[path] is a relative path, @racket[#f] otherwise. The @racket[path] argument can be a path for any @@ -320,7 +320,7 @@ contains a nul character), @racket[#f] is returned. This procedure does not access the filesystem.} -@defproc[(complete-path? [path (or/c path-string? path-for-some-system?)]) boolean?]{ +@defproc[(complete-path? [path (or/c path? string? path-for-some-system?)]) boolean?]{ Returns @racket[#t] if @racket[path] is a @deftech{complete}ly determined path (@italic{not} relative to a directory or drive), @racket[#f]