From b77ae86350cb45ecc559f6be8fcf02e3a2efc9b0 Mon Sep 17 00:00:00 2001 From: Mark Lorenz Date: Sun, 29 Jun 2014 20:48:00 -0400 Subject: [PATCH] document File.join returns a string The documented return from `File.join` is `path`. This patch changes it to `string` to avoid confusion with `Pathname#join`, which returns a `Pathname` object. --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file.c b/file.c index a2d6681..196efbb 100644 --- a/file.c +++ b/file.c @@ -4291,7 +4291,7 @@ rb_file_join(VALUE ary, VALUE sep) /* * call-seq: - * File.join(string, ...) -> path + * File.join(string, ...) -> string * * Returns a new string formed by joining the strings using * File::SEPARATOR. -- 1.8.5.2 (Apple Git-48)