aboutsummaryrefslogtreecommitdiffstats
path: root/dir.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-10-27 08:51:54 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-10-27 08:55:10 +0900
commit135d369096524e3e949b0a8a3330c60c000e4702 (patch)
treea33339afe2470075fbfa33017596f4623fd256e8 /dir.rb
parentc56fdaecc4293c6f5ff81a55737612f5c72437bd (diff)
downloadruby-135d369096524e3e949b0a8a3330c60c000e4702.tar.gz
[DOC] more precise description of "**" in Dir.glob pattern [ci skip]
Diffstat (limited to 'dir.rb')
-rw-r--r--dir.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/dir.rb b/dir.rb
index da19fc7002..eb46305013 100644
--- a/dir.rb
+++ b/dir.rb
@@ -81,7 +81,9 @@ class Dir
# File::FNM_DOTMATCH flag or something like <code>"{*,.*}"</code>.
#
# <code>**</code>::
- # Matches directories recursively or files expansively.
+ # Matches directories recursively if followed by <code>/</code>. If
+ # this path segment contains any other characters, it is the same as the
+ # usual <code>*</code>.
#
# <code>?</code>::
# Matches any one character. Equivalent to <code>/.{1}/</code> in regexp.