diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | doc/syntax/methods.rdoc | 2 |
2 files changed, 6 insertions, 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 diff --git a/doc/syntax/methods.rdoc b/doc/syntax/methods.rdoc index 88a4378af8..15ca965774 100644 --- a/doc/syntax/methods.rdoc +++ b/doc/syntax/methods.rdoc @@ -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 |