ruby-changes:42015
From: nobu <ko1@a...>
Date: Sat, 12 Mar 2016 09:50:34 +0900 (JST)
Subject: [ruby-changes:42015] nobu:r54089 (trunk): Malformed RDoc syntax in catch [ci skip]
nobu 2016-03-12 09:50:29 +0900 (Sat, 12 Mar 2016) New Revision: 54089 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54089 Log: 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] Modified files: trunk/ChangeLog trunk/vm_eval.c Index: ChangeLog =================================================================== --- ChangeLog (revision 54088) +++ ChangeLog (revision 54089) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Mar 12 09:50:27 2016 Nobuyoshi Nakada <nobu@r...> + + * 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] + Sat Mar 12 02:44:48 2016 Tanaka Akira <akr@f...> * test/lib/test/unit.rb: describe !/REGEXP/ in the help message. Index: vm_eval.c =================================================================== --- vm_eval.c (revision 54088) +++ vm_eval.c (revision 54089) @@ -1938,10 +1938,10 @@ catch_i(VALUE tag, VALUE data) https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L1938 * * 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/