[前][次][番号順一覧][スレッド一覧]

ruby-changes:28186

From: hsbt <ko1@a...>
Date: Thu, 11 Apr 2013 18:32:52 +0900 (JST)
Subject: [ruby-changes:28186] hsbt:r40238 (trunk): Fix return value in example by @rkh [fix GH-284]

hsbt	2013-04-11 18:32:42 +0900 (Thu, 11 Apr 2013)

  New Revision: 40238

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40238

  Log:
    Fix return value in example by @rkh [fix GH-284]

  Modified files:
    trunk/dir.c

Index: dir.c
===================================================================
--- dir.c	(revision 40237)
+++ dir.c	(revision 40238)
@@ -2042,7 +2042,7 @@ fnmatch_brace(const char *pattern, VALUE https://github.com/ruby/ruby/blob/trunk/dir.c#L2042
  *     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]