diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-28 17:04:28 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-28 17:04:28 +0000 |
commit | d27080e7c3eb84355c6353a75f0f827b6578f386 (patch) | |
tree | 1449ec26104d5a00ebae1f81ea31e3ffaca4f7c4 /vm_eval.c | |
parent | 1f4640cf04ed80f1578f897adabcc5db039b7c29 (diff) |
merge revision(s) 54089: [Backport #12170]
* 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/branches/ruby_2_2@54339 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
@@ -1905,10 +1905,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 |