diff --git a/dir.c b/dir.c index e3099f4973..e568ab000d 100644 --- a/dir.c +++ b/dir.c @@ -484,7 +484,7 @@ dir_s_alloc(VALUE klass) * * Returns a new directory object for the named directory. * - * The optional enc argument specifies the encoding of the directory. + * The optional encoding keyword argument specifies the encoding of the directory. * If not specified, the filesystem encoding is used. */ static VALUE @@ -555,7 +555,7 @@ dir_initialize(int argc, VALUE *argv, VALUE dir) * Dir.open( string ) {| aDir | block } -> anObject * Dir.open( string, encoding: enc ) {| aDir | block } -> anObject * - * The optional enc argument specifies the encoding of the directory. + * The optional encoding keyword argument specifies the encoding of the directory. * If not specified, the filesystem encoding is used. * * With no block, open is a synonym for @@ -2510,8 +2510,8 @@ dir_foreach(int argc, VALUE *argv, VALUE io) * directory. Will raise a SystemCallError if the named * directory doesn't exist. * - * The optional enc argument specifies the encoding of the directory. - * If not specified, the filesystem encoding is used. + * The optional encoding keyword argument specifies the encoding of the + * directory. If not specified, the filesystem encoding is used. * * Dir.entries("testdir") #=> [".", "..", "config.h", "main.rb"] *