mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* doc/syntax/methods.rdoc: Add () around keyword arguments example for
consistency. Thanks to Josh Susser. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
67ae926c5e
commit
2c0d2db5cb
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Dec 19 15:23:50 2012 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* doc/syntax/methods.rdoc: Add () around keyword arguments example for
|
||||
consistency. Thanks to Josh Susser.
|
||||
|
||||
Wed Dec 19 01:51:24 2012 CHIKANAGA Tomoyuki <nagachika@ruby-lang.org>
|
||||
|
||||
* vm.c (rb_vm_jump_tag_but_local_jump): remove unnecessary 2nd
|
||||
|
|
|
@ -85,7 +85,7 @@ This will raise a SyntaxError:
|
|||
|
||||
Keyword arguments are similar to positional arguments with default values:
|
||||
|
||||
def add_values first: 1, second: 2
|
||||
def add_values(first: 1, second: 2)
|
||||
first + second
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue