summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasataka Pocke Kuwabara <kuwabara@pocke.me>2020-02-24 16:37:33 +0900
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-02-25 16:53:35 +1300
commitfa1ec60424a80286a96dc746339be5a37df82def (patch)
tree9d378d654c967bb751e45f52ec7da69ef58a7f3c
parent8b6e2685a4b7c7de905f7ed60c02ef85e0724754 (diff)
Fix wrong documentation for return value of Pathname#fnmatch
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2923
-rw-r--r--ext/pathname/pathname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c
index 458846db27..ac0ab91987 100644
--- a/ext/pathname/pathname.c
+++ b/ext/pathname/pathname.c
@@ -610,8 +610,8 @@ path_lchown(VALUE self, VALUE owner, VALUE group)
/*
* 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.
*