зеркало из https://github.com/github/ruby.git
Fix documentation for Dir.glob
Dir.glob("*", File::FNM_DOTMATCH) no longer includes ".." in the returned array as of Ruby 3.1. Fixes [Bug #18436]
This commit is contained in:
Родитель
44379805b0
Коммит
5917f49ad0
2
dir.rb
2
dir.rb
|
@ -200,7 +200,7 @@ class Dir
|
|||
# Dir.glob("*.[^r]*") #=> ["config.h"]
|
||||
# Dir.glob("*.{rb,h}") #=> ["main.rb", "config.h"]
|
||||
# Dir.glob("*") #=> ["config.h", "main.rb"]
|
||||
# Dir.glob("*", File::FNM_DOTMATCH) #=> [".", "..", "config.h", "main.rb"]
|
||||
# Dir.glob("*", File::FNM_DOTMATCH) #=> [".", "config.h", "main.rb"]
|
||||
# Dir.glob(["*.rb", "*.h"]) #=> ["main.rb", "config.h"]
|
||||
#
|
||||
# Dir.glob("**/*.rb") #=> ["main.rb",
|
||||
|
|
Загрузка…
Ссылка в новой задаче