summaryrefslogtreecommitdiff
path: root/doc/syntax
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-19 06:24:02 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-19 06:24:02 +0000
commit2c0d2db5cb8f63e9b1e2c2ff776a8d26d510e49f (patch)
tree742484a7d9659cf73935d5124680be029d3d6ffb /doc/syntax
parent67ae926c5e68b656c3661aaa747d7720488c32ba (diff)
* 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
Diffstat (limited to 'doc/syntax')
-rw-r--r--doc/syntax/methods.rdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/syntax/methods.rdoc b/doc/syntax/methods.rdoc
index 88a4378..15ca965 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