summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-08 07:31:46 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-08 07:31:46 +0000
commit6ce7986668a159de41534b70e777f2ed216f6e5c (patch)
tree80aa5c702fb070453a8d49930881c430d0d8dc6c /dir.c
parenta38339d83d76d89983c94f11ced71c35a0d091a8 (diff)
downloadruby-6ce7986668a159de41534b70e777f2ed216f6e5c.tar.gz
[DOC] `*` in glob matches `\n` too [ci skip]
``` File.fnmatch("a*b", "a\nb") # => true /\Aa.*b\z/x.match?("a\nb") # => false /\Aa.*b\z/mx.match?("a\nb") # => true ``` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 2260b9746f..a8e7f01d19 100644
--- a/dir.c
+++ b/dir.c
@@ -2653,7 +2653,7 @@ dir_s_aref(int argc, VALUE *argv, VALUE obj)
*
* <code>*</code>::
* Matches any file. Can be restricted by other values in the glob.
- * Equivalent to <code>/ .* /x</code> in regexp.
+ * Equivalent to <code>/ .* /mx</code> in regexp.
*
* <code>*</code>:: Matches all files
* <code>c*</code>:: Matches all files beginning with <code>c</code>