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

ruby-changes:64579

From: Marcus <ko1@a...>
Date: Fri, 25 Dec 2020 07:15:11 +0900 (JST)
Subject: [ruby-changes:64579] c3f91f9d88 (master): [DOC] Fix typos

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

From c3f91f9d8823d607e73f621bbf40f4cba44dc739 Mon Sep 17 00:00:00 2001
From: Marcus Stollsteimer <sto.mar@w...>
Date: Thu, 24 Dec 2020 23:09:51 +0100
Subject: [DOC] Fix typos


diff --git a/object.c b/object.c
index 9cbc251..64cf88a 100644
--- a/object.c
+++ b/object.c
@@ -2263,7 +2263,7 @@ id_for_attr(VALUE obj, VALUE name) https://github.com/ruby/ruby/blob/trunk/object.c#L2263
  *  value of each instance variable. Equivalent to calling
  *  ``<code>attr</code><i>:name</i>'' on each name in turn.
  *  String arguments are converted to symbols.
- *  Returns an array of defined methods names as symbols.
+ *  Returns an array of defined method names as symbols.
  */
 
 static VALUE
@@ -2289,7 +2289,7 @@ rb_mod_attr_reader(int argc, VALUE *argv, VALUE klass) https://github.com/ruby/ruby/blob/trunk/object.c#L2289
  *  The first form is equivalent to #attr_reader.
  *  The second form is equivalent to <code>attr_accessor(name)</code> but deprecated.
  *  The last form is equivalent to <code>attr_reader(name)</code> but deprecated.
- *  Returns an array of defined methods names as symbols.
+ *  Returns an array of defined method names as symbols.
  *--
  * \private
  * \todo can be static?
@@ -2319,7 +2319,7 @@ rb_mod_attr(int argc, VALUE *argv, VALUE klass) https://github.com/ruby/ruby/blob/trunk/object.c#L2319
  *  Creates an accessor method to allow assignment to the attribute
  *  <i>symbol</i><code>.id2name</code>.
  *  String arguments are converted to symbols.
- *  Returns an array of defined methods names as symbols.
+ *  Returns an array of defined method names as symbols.
  */
 
 static VALUE
@@ -2346,7 +2346,7 @@ rb_mod_attr_writer(int argc, VALUE *argv, VALUE klass) https://github.com/ruby/ruby/blob/trunk/object.c#L2346
  *  (<code>@name</code>) and a corresponding access method to read it.
  *  Also creates a method called <code>name=</code> to set the attribute.
  *  String arguments are converted to symbols.
- *  Returns an array of defined methods names as symbols.
+ *  Returns an array of defined method names as symbols.
  *
  *     module Mod
  *       attr_accessor(:one, :two) #=> [:one, :one=, :two, :two=]
-- 
cgit v0.10.2


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

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