diff --git a/eval.c b/eval.c index 13602bc663..59887bc76a 100644 --- a/eval.c +++ b/eval.c @@ -1505,9 +1505,10 @@ rb_f_callee_name(void) * call-seq: * __dir__ -> string * - * Returns the value of File.dirname(__FILE__) + * Returns the absolute path of the directory of the file from which this + * method is called. * If __FILE__ is nil, it returns nil. - * And it returns always an absolute path. + * The return value equals to File.dirname(File.expand_path(__FILE__)). * */ static VALUE