mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* doc/syntax/methods.rdoc: rdoc fix, patch by Dave Brown
[github:222] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e9e4ea981e
commit
542a12d673
1 changed files with 2 additions and 2 deletions
|
@ -68,8 +68,8 @@ Arguments may have default values:
|
|||
a + b
|
||||
end
|
||||
|
||||
The default value does not need to appear first, but the must be grouped
|
||||
together. This is ok:
|
||||
The default value does not need to appear first, but arguments with defaults
|
||||
must be grouped together. This is ok:
|
||||
|
||||
def add_values(a = 1, b = 2, c)
|
||||
a + b + c
|
||||
|
|
Loading…
Add table
Reference in a new issue