summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-29 08:04:49 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-29 08:04:49 +0000
commit5d699f8a3a7ff32ebc36b7a92ececafeb81d9bab (patch)
tree017ea137890831a64876b7230a10874122d3c483 /vm_eval.c
parentc03f28c98c95673d426b535dba6b5819fb5df239 (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_3@54386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vm_eval.c b/vm_eval.c
index b765ad6692..9c9f5fe705 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -1923,10 +1923,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