aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-07 20:14:46 +0000
committerstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-07 20:14:46 +0000
commit8f21a875793c6b7b3d45b67ceb3e78453bc7bbca (patch)
tree3c414d7b224f6c5a3a8ae6893dce1d5b1ce7756f
parent289e8441dd8b34b6c451d73f810a58d0d6f1b74d (diff)
downloadruby-8f21a875793c6b7b3d45b67ceb3e78453bc7bbca.tar.gz
pathname.c: improve docs for Pathname
* ext/pathname/pathname.c: [DOC] improve example for Pathname.glob, by using a more common glob pattern, and improve the reference to the `base' keyword argument for Pathname#glob. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/pathname/pathname.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c
index 9194d0e010..2d74e9cf80 100644
--- a/ext/pathname/pathname.c
+++ b/ext/pathname/pathname.c
@@ -1083,8 +1083,8 @@ s_glob_i(RB_BLOCK_CALL_FUNC_ARGLIST(elt, klass))
/*
* Returns or yields Pathname objects.
*
- * Pathname.glob("config/?*.rb")
- * #=> [#<Pathname:config/environment.rb>, #<Pathname:config/routes.rb>, ..]
+ * Pathname.glob("lib/i*.rb")
+ * #=> [#<Pathname:lib/ipaddr.rb>, #<Pathname:lib/irb.rb>]
*
* See Dir.glob.
*/
@@ -1126,7 +1126,7 @@ glob_i(RB_BLOCK_CALL_FUNC_ARGLIST(elt, self))
* #=> [#<Pathname:ruby-2.4.2/README.md>, #<Pathname:ruby-2.4.2/README.ja.md>]
*
* See Dir.glob.
- * This method uses base: argument of Dir.glob.
+ * This method uses the +base+ keyword argument of Dir.glob.
*/
static VALUE
path_glob(int argc, VALUE *argv, VALUE self)