[DOC] Fix call-seq of Dir.glob

`patterns` may be an array but not the rest argument.
This commit is contained in:
Nobuyoshi Nakada 2025-05-20 22:12:58 +09:00
parent 8dbff6e402
commit d0a8f6baa7
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2025-05-20 13:20:33 +00:00

4
dir.rb
View File

@ -224,8 +224,8 @@ class Dir
end
# call-seq:
# Dir.glob(*patterns, flags: 0, base: nil, sort: true) -> array
# Dir.glob(*patterns, flags: 0, base: nil, sort: true) {|entry_name| ... } -> nil
# Dir.glob(patterns, flags: 0, base: nil, sort: true) -> array
# Dir.glob(patterns, flags: 0, base: nil, sort: true) {|entry_name| ... } -> nil
#
# Forms an array _entry_names_ of the entry names selected by the arguments.
#