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

ruby-changes:60177

From: Masataka <ko1@a...>
Date: Tue, 25 Feb 2020 12:53:54 +0900 (JST)
Subject: [ruby-changes:60177] fa1ec60424 (master): Fix wrong documentation for return value of Pathname#fnmatch

https://git.ruby-lang.org/ruby.git/commit/?id=fa1ec60424

From fa1ec60424a80286a96dc746339be5a37df82def Mon Sep 17 00:00:00 2001
From: Masataka Pocke Kuwabara <kuwabara@p...>
Date: Mon, 24 Feb 2020 16:37:33 +0900
Subject: Fix wrong documentation for return value of Pathname#fnmatch


diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c
index 458846d..ac0ab91 100644
--- a/ext/pathname/pathname.c
+++ b/ext/pathname/pathname.c
@@ -610,8 +610,8 @@ path_lchown(VALUE self, VALUE owner, VALUE group) https://github.com/ruby/ruby/blob/trunk/ext/pathname/pathname.c#L610
 
 /*
  * call-seq:
- *    pathname.fnmatch(pattern, [flags])        -> string
- *    pathname.fnmatch?(pattern, [flags])       -> string
+ *    pathname.fnmatch(pattern, [flags])        -> true or false
+ *    pathname.fnmatch?(pattern, [flags])       -> true or false
  *
  * Return +true+ if the receiver matches the given pattern.
  *
-- 
cgit v0.10.2


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

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