From cc6e6de22f08a857174813cc90e8e378c71fbef9 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 24 Jan 2013 06:55:24 +0000 Subject: re-fix documents File.realdirpath(path) is not a shorthand for File.dirname(File.realpath(path)), just does not err if the last component does not exist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 622bfedf76..c4bda48524 100644 --- a/eval.c +++ b/eval.c @@ -1508,7 +1508,7 @@ rb_f_callee_name(void) * Returns the canonicalized absolute path of the directory of the file from * which this method is called. It means symlinks in the path is resolved. * If __FILE__ is nil, it returns nil. - * The return value equals to File.realdirpath(__FILE__). + * The return value equals to File.dirname(File.realpath(__FILE__)). * */ static VALUE -- cgit v1.2.3