aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-30 11:26:09 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-30 11:26:09 +0000
commit929fe23e52d55a7be9f5c6f733482488e1267be8 (patch)
tree5de9d636036e640f1843ec27954ae093a24af81b /doc
parent4eb52f78408400266a6f08f4d26cd4559f31678f (diff)
downloadruby-929fe23e52d55a7be9f5c6f733482488e1267be8.tar.gz
* doc/syntax/calling_methods.rdoc: fix old operator for safe navigation
operator. [ci skip][fix GH-1182] Patch by @dougo git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc')
-rw-r--r--doc/syntax/calling_methods.rdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/syntax/calling_methods.rdoc b/doc/syntax/calling_methods.rdoc
index f1ebf186f7..ec86ef05ee 100644
--- a/doc/syntax/calling_methods.rdoc
+++ b/doc/syntax/calling_methods.rdoc
@@ -27,7 +27,7 @@ This sends the +my_method+ message to +my_object+. Any object can be a
receiver but depending on the method's visibility sending a message may raise a
NoMethodError.
-You may use <code>.?</code> to designate a receiver, then +my_method+ is not
+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
arguments of +my_method+ are not evaluated.