aboutsummaryrefslogtreecommitdiffstats
path: root/doc/syntax/modules_and_classes.rdoc
diff options
context:
space:
mode:
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+