summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorMarcus Stollsteimer <sto.mar@web.de>2020-12-24 23:09:51 +0100
committerMarcus Stollsteimer <sto.mar@web.de>2020-12-24 23:09:51 +0100
commitc3f91f9d8823d607e73f621bbf40f4cba44dc739 (patch)
treea42cc86b9696ea6dcdfb2b898cf991daba6e4f46 /object.c
parentdb2ebbd71b746734b88832b1e70db8afed3d68ed (diff)
[DOC] Fix typos
Diffstat (limited to 'object.c')
-rw-r--r--object.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/object.c b/object.c
index 9cbc251d27..64cf88ae9f 100644
--- a/object.c
+++ b/object.c
@@ -2263,7 +2263,7 @@ id_for_attr(VALUE obj, VALUE name)
* 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)
* 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)
* 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)
* (<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=]