summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorsho-h <sho-h@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-03 15:21:43 +0000
committersho-h <sho-h@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-03 15:21:43 +0000
commitba32b53e4833c128ec6a079fca0e126d1bcd16dd (patch)
tree24583fdf1766910d9f305de50f19e65a16cfadc5 /proc.c
parente63546fb4517892b05df60b5007d297143a36e9f (diff)
downloadruby-ba32b53e4833c128ec6a079fca0e126d1bcd16dd.tar.gz
* proc.c: [DOC] fix Object#define_singleton_method and
main.define_method return value. [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/proc.c b/proc.c
index 8d3f62b1fe..c096f62739 100644
--- a/proc.c
+++ b/proc.c
@@ -1932,8 +1932,8 @@ rb_mod_define_method(int argc, VALUE *argv, VALUE mod)
/*
* call-seq:
- * define_singleton_method(symbol, method) -> new_method
- * define_singleton_method(symbol) { block } -> proc
+ * define_singleton_method(symbol, method) -> symbol
+ * define_singleton_method(symbol) { block } -> symbol
*
* Defines a singleton method in the receiver. The _method_
* parameter can be a +Proc+, a +Method+ or an +UnboundMethod+ object.
@@ -1965,8 +1965,8 @@ rb_obj_define_method(int argc, VALUE *argv, VALUE obj)
}
/*
- * define_method(symbol, method) -> new_method
- * define_method(symbol) { block } -> proc
+ * define_method(symbol, method) -> symbol
+ * define_method(symbol) { block } -> symbol
*
* Defines a global function by _method_ or the block.
*/