From 91d5cda26d5a836eb23c869ebfdaca668faa164d Mon Sep 17 00:00:00 2001 From: hsbt Date: Thu, 11 Apr 2013 09:32:42 +0000 Subject: [PATCH] Fix return value in example by @rkh [fix GH-284] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dir.c b/dir.c index 507d8c1f1d..a069bb34df 100644 --- a/dir.c +++ b/dir.c @@ -2042,7 +2042,7 @@ fnmatch_brace(const char *pattern, VALUE val, void *enc) * File.fnmatch('cat', 'category') #=> false # only match partial string * * File.fnmatch('c{at,ub}s', 'cats') #=> false # { } isn't supported by default - * File.fnmatch('c{at,ub}s', 'cats', File::FNM_EXTGLOB) #=> false # { } is supported on FNM_EXTGLOB + * File.fnmatch('c{at,ub}s', 'cats', File::FNM_EXTGLOB) #=> true # { } is supported on FNM_EXTGLOB * * File.fnmatch('c?t', 'cat') #=> true # '?' match only 1 character * File.fnmatch('c??t', 'cat') #=> false # ditto