aboutsummaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
authorsonghuangcn <git@songhuangcn.com>2019-08-15 23:20:52 +0800
committerTakashi Kokubun <takashikkbn@gmail.com>2019-08-16 00:20:52 +0900
commitd2070f2e454a6d2207fedf48525269ec04fbfa0e (patch)
tree7e007fecdeede0eb655745919c90ee7c153efd01 /object.c
parent715218c4306140ed9a62d993890de13e1d2ec572 (diff)
downloadruby-d2070f2e454a6d2207fedf48525269ec04fbfa0e.tar.gz
Fix doc in Object#respond_to_missing? (#2239)
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index 16dce71671..c580d01223 100644
--- a/object.c
+++ b/object.c
@@ -4160,7 +4160,7 @@ rb_obj_dig(int argc, VALUE *argv, VALUE obj, VALUE notfound)
* DELEGATE = [:puts, :p]
*
* def method_missing(name, *args, &block)
- * super unless DELEGATE.include? name
+ * return super unless DELEGATE.include? name
* ::Kernel.send(name, *args, &block)
* end
*