[前][次][番号順一覧][スレッド一覧]

ruby-changes:72552

From: Jeremy <ko1@a...>
Date: Fri, 15 Jul 2022 05:30:37 +0900 (JST)
Subject: [ruby-changes:72552] 4813443837 (master): Fix language describing protected methods

https://git.ruby-lang.org/ruby.git/commit/?id=4813443837

From 4813443837d76e27eb293f1928bda7a47b9e8f3f Mon Sep 17 00:00:00 2001
From: Jeremy Evans <code@j...>
Date: Thu, 14 Jul 2022 13:28:58 -0700
Subject: Fix language describing protected methods

Fixes [Bug #18887]
---
 doc/syntax/modules_and_classes.rdoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 https://github.com/ruby/ruby/blob/trunk/doc/syntax/modules_and_classes.rdoc#L155
 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
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]