ruby-changes:26799
From: drbrain <ko1@a...>
Date: Thu, 17 Jan 2013 07:00:52 +0900 (JST)
Subject: [ruby-changes:26799] drbrain:r38851 (trunk): * doc/syntax/control_expressions.rdoc (if Expressions): Fixed markup
drbrain 2013-01-17 07:00:02 +0900 (Thu, 17 Jan 2013) New Revision: 38851 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38851 Log: * doc/syntax/control_expressions.rdoc (if Expressions): Fixed markup error. Fixes #235 on github by FlyingFoX. Modified files: trunk/ChangeLog trunk/doc/syntax/control_expressions.rdoc Index: doc/syntax/control_expressions.rdoc =================================================================== --- doc/syntax/control_expressions.rdoc (revision 38850) +++ doc/syntax/control_expressions.rdoc (revision 38851) @@ -54,7 +54,7 @@ You may add an arbitrary number of extra https://github.com/ruby/ruby/blob/trunk/doc/syntax/control_expressions.rdoc#L54 puts "a is some other value" end -This will print "a is one" as <code>1<code> is not equal to <code>0</code>. +This will print "a is one" as <code>1</code> is not equal to <code>0</code>. Since +else+ is only executed when there are no matching conditions. Once a condition matches, either the +if+ condition or any +elsif+ condition, Index: ChangeLog =================================================================== --- ChangeLog (revision 38850) +++ ChangeLog (revision 38851) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Jan 17 06:59:51 2013 Eric Hodel <drbrain@s...> + + * doc/syntax/control_expressions.rdoc (if Expressions): Fixed markup + error. Fixes #235 on github by FlyingFoX. + Thu Jan 17 06:53:58 2013 Eric Hodel <drbrain@s...> * doc/syntax/literals.rdoc (Strings): Fixed typo. Fixes #236 on -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/