From 4e8a2a26381bb4621d4ec61aec607320307ed755 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Sat, 17 Oct 2009 00:09:57 -0500 Subject: [PATCH] io.backend/pathnames: fix help lint --- core/io/backend/backend.factor | 4 ++-- core/io/pathnames/pathnames-docs.factor | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/io/backend/backend.factor b/core/io/backend/backend.factor index 84d1f52b9c..494ccbff22 100644 --- a/core/io/backend/backend.factor +++ b/core/io/backend/backend.factor @@ -21,9 +21,9 @@ HOOK: init-stdio io-backend ( -- ) HOOK: io-multiplex io-backend ( us -- ) -HOOK: normalize-directory io-backend ( str -- newstr ) +HOOK: normalize-directory io-backend ( path -- path' ) -HOOK: normalize-path io-backend ( str -- newstr ) +HOOK: normalize-path io-backend ( path -- path' ) M: object normalize-directory normalize-path ; diff --git a/core/io/pathnames/pathnames-docs.factor b/core/io/pathnames/pathnames-docs.factor index 8b293da3cc..889f2262a8 100644 --- a/core/io/pathnames/pathnames-docs.factor +++ b/core/io/pathnames/pathnames-docs.factor @@ -89,7 +89,7 @@ HELP: pathname { $class-description "Class of path name objects. Path name objects can be created by calling " { $link } "." } ; HELP: normalize-path -{ $values { "string" "a pathname string" } { "string'" "a new pathname string" } } +{ $values { "path" "a pathname string" } { "path'" "a new pathname string" } } { $description "Prepends the " { $link current-directory } " to the pathname, resolves a " { $snippet "resource:" } " or " { $snippet "voacb:" } " prefix, if present, and performs any platform-specific pathname normalization." } { $notes "High-level words, such as " { $link } " and " { $link delete-file } " call this word for you. It only needs to be called directly when passing pathnames to C functions or external processes. This is because Factor does not use the operating system's notion of a current directory, and instead maintains its own dynamically-scoped " { $link current-directory } " variable." } { $notes "On Windows NT platforms, this word does prepends the Unicode path prefix." }