* doc/syntax/methods.rdoc: [DOC] Fix example for block arguments [ci skip]

By @idupree [Fixes GH-554] https://github.com/ruby/ruby/pull/554


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
zzak 2014-03-06 06:08:40 +00:00
parent 27a50dd1df
commit 31fa4d8899
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu Mar 6 15:07:18 2014 Zachary Scott <e@zzak.io>
* doc/syntax/methods.rdoc: [DOC] Fix example for block arguments
By @idupree [Fixes GH-554] https://github.com/ruby/ruby/pull/554
Thu Mar 6 10:33:31 2014 Martin Bosslet <Martin.Bosslet@gmail.com>
* lib/openssl/ssl.rb: Explicitly whitelist the default

View File

@ -383,7 +383,7 @@ arguments must appear before any keyword arguments.
The block argument is indicated by <code>&</code> and must come last:
def my_method(&my_block)
my_method.call(self)
my_block.call(self)
end
Most frequently the block argument is used to pass a block to another method: