diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-23 16:53:41 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-23 16:53:41 +0000 |
commit | a4786f758a4b241aad19bb524ec1b33783af4a83 (patch) | |
tree | c7de133562839f75481b2cf02a2f90b25cab3464 /doc | |
parent | 2f48e09952adb943516aae894d4f842fe7c283db (diff) | |
download | ruby-a4786f758a4b241aad19bb524ec1b33783af4a83.tar.gz |
* NEWS: [DOC] In the new safe call syntax, arguments are evaluated
only if a call is made.
* doc/syntax/calling_methods.rdoc: Fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc')
-rw-r--r-- | doc/syntax/calling_methods.rdoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/syntax/calling_methods.rdoc b/doc/syntax/calling_methods.rdoc index db0217cfef..99ec48af40 100644 --- a/doc/syntax/calling_methods.rdoc +++ b/doc/syntax/calling_methods.rdoc @@ -29,7 +29,7 @@ NoMethodError. You may use <code>.?</code> to designate a receiver, then +my_method+ is not invoked and the result is +nil+ when the receiver is +nil+. In that case, the -argument of +my_method+ are not evaluated. +arguments of +my_method+ are not evaluated. You may also use <code>::</code> to designate a receiver, but this is rarely used due to the potential for confusion with <code>::</code> for namespaces. |