aboutsummaryrefslogtreecommitdiffstats
path: root/doc/syntax/modules_and_classes.rdoc
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-20 02:32:50 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-20 02:40:59 +0900
commitb80df6e8e0a59207545822d92c0a4f78cd64ef5e (patch)
treec1c999c7aa61e39c8e4258181ad3263405625146 /doc/syntax/modules_and_classes.rdoc
parente6378cdcd8246697be652b74442f9c07503e0ba6 (diff)
downloadruby-b80df6e8e0a59207545822d92c0a4f78cd64ef5e.tar.gz
Update NEWS and documents [ci skip]
[Feature #11297] [Feature #16123]
Diffstat (limited to 'doc/syntax/modules_and_classes.rdoc')
-rw-r--r--doc/syntax/modules_and_classes.rdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/syntax/modules_and_classes.rdoc b/doc/syntax/modules_and_classes.rdoc
index dd70d4ac21..8fc84d522a 100644
--- a/doc/syntax/modules_and_classes.rdoc
+++ b/doc/syntax/modules_and_classes.rdoc
@@ -191,8 +191,8 @@ Here is an example:
a.n b # raises NoMethodError A is not a subclass of B
The third visibility is +private+. A private method may not be called with a
-receiver, not even +self+. If a private method is called with a receiver a
-NoMethodError will be raised.
+receiver, not even if it equals +self+. If a private method is called with a
+receiver other than a literal +self+ a NoMethodError will be raised.
=== +alias+ and +undef+