summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-05-20 22:12:58 +0900
committerNobuyoshi Nakada <[email protected]>2025-05-20 22:12:58 +0900
commitd0a8f6baa71d320e4bdc2420a2a30ef150dfa8e4 (patch)
tree667013ed88517bdf327de59becfe92cd57d9012c
parent8dbff6e402d7a490e6e624256699362bb713986d (diff)
[DOC] Fix call-seq of Dir.glob
`patterns` may be an array but not the rest argument.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13378
-rw-r--r--dir.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/dir.rb b/dir.rb
index 6cbfe1fb14..a05bd18630 100644
--- a/dir.rb
+++ b/dir.rb
@@ -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.
#