summaryrefslogtreecommitdiff
path: root/dir.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-07-01 14:26:06 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-07-01 14:45:47 +0900
commit9ca30516605e4fb3aaaaa268a6542635736ba1e4 (patch)
tree47103a0dafabc7c49145e4aa582a9eadf24e6162 /dir.rb
parent9692aeedf117a35933cf63cdce964e6403337306 (diff)
[DOC] fixed the default value of flags [ci skip]
Diffstat (limited to 'dir.rb')
-rw-r--r--dir.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.rb b/dir.rb
index 3b0e9d99cd..4d27b0093e 100644
--- a/dir.rb
+++ b/dir.rb
@@ -298,7 +298,7 @@ class << File
# File.fnmatch('**/foo', 'c:/a/b/c/foo', File::FNM_PATHNAME) #=> true
# File.fnmatch('**/foo', 'a/.b/c/foo', File::FNM_PATHNAME) #=> false
# File.fnmatch('**/foo', 'a/.b/c/foo', File::FNM_PATHNAME | File::FNM_DOTMATCH) #=> true
- def fnmatch(pattern, path, flags = nil)
+ def fnmatch(pattern, path, flags = 0)
end
alias fnmatch? fnmatch
end if false