diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-12 00:50:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-12 00:50:29 +0000 |
commit | 2feba9e1429d2f0736445d73c226c43449fe0530 (patch) | |
tree | c8b1795c3d50559f05ac73c6fea8a1148404998f /vm_eval.c | |
parent | e6fce8d83333438347e44624da74413c38aecc7f (diff) | |
download | ruby-2feba9e1429d2f0736445d73c226c43449fe0530.tar.gz |
Malformed RDoc syntax in catch [ci skip]
* vm_eval.c (rb_f_catch): [DOC] fix malformed RDoc syntax, "+...+"
cannot enclose non-identifier characters.
a patch by Sebastian S in [ruby-core:74278]. [Bug#12170]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r-- | vm_eval.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1938,10 +1938,10 @@ catch_i(VALUE tag, VALUE data) * * catch(1) { 123 } # => 123 * - * If +throw(tag2, val)+ is called, Ruby searches up its stack for a +catch+ - * block whose +tag+ has the same +object_id+ as _tag2_. When found, the block - * stops executing and returns _val_ (or +nil+ if no second argument was given - * to +throw+). + * If <code>throw(tag2, val)</code> is called, Ruby searches up its stack for + * a +catch+ block whose +tag+ has the same +object_id+ as _tag2_. When found, + * the block stops executing and returns _val_ (or +nil+ if no second argument + * was given to +throw+). * * catch(1) { throw(1, 456) } # => 456 * catch(1) { throw(1) } # => nil |