mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-18 12:31:22 +02:00
Merge pull request #3793 from alexmdac/patch-1
[ruby/en] Fix typo in ruby.html.markdown
This commit is contained in:
@@ -410,7 +410,7 @@ def guests(&block)
|
|||||||
end
|
end
|
||||||
|
|
||||||
# The 'call' method on the Proc is similar to calling 'yield' when a block is
|
# The 'call' method on the Proc is similar to calling 'yield' when a block is
|
||||||
# present. The arguments passed to 'call' will be forwarded to the block as arugments.
|
# present. The arguments passed to 'call' will be forwarded to the block as arguments.
|
||||||
|
|
||||||
guests { |n| "You have #{n} guests." }
|
guests { |n| "You have #{n} guests." }
|
||||||
# => "You have 4 guests."
|
# => "You have 4 guests."
|
||||||
|
Reference in New Issue
Block a user