summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2022-07-14 13:28:58 -0700
committerJeremy Evans <code@jeremyevans.net>2022-07-14 13:28:58 -0700
commit4813443837d76e27eb293f1928bda7a47b9e8f3f (patch)
tree68ae81e5875967c069f391ec6893f66c04f05264 /doc
parentb8247a16694242a6e6bdd53d09a9443753a4e979 (diff)
Fix language describing protected methods
Fixes [Bug #18887]
Diffstat (limited to 'doc')
-rw-r--r--doc/syntax/modules_and_classes.rdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/syntax/modules_and_classes.rdoc b/doc/syntax/modules_and_classes.rdoc
index 9c83a319b9..024815a5a6 100644
--- a/doc/syntax/modules_and_classes.rdoc
+++ b/doc/syntax/modules_and_classes.rdoc
@@ -155,7 +155,7 @@ Ruby has three types of visibility. The default is +public+. A public method
may be called from any other object.
The second visibility is +protected+. When calling a protected method the
-receiver must inherit the Class or Module which defines the method. Otherwise a
+sender must inherit the Class or Module which defines the method. Otherwise a
NoMethodError will be raised.
Protected visibility is most frequently used to define <code>==</code> and