summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--doc/syntax/methods.rdoc2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e90eff49be3..69240c4d2cf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 88a4378af82..15ca9657741 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