From c3f91f9d8823d607e73f621bbf40f4cba44dc739 Mon Sep 17 00:00:00 2001 From: Marcus Stollsteimer Date: Thu, 24 Dec 2020 23:09:51 +0100 Subject: [PATCH] [DOC] Fix typos --- object.c | 8 ++++---- 1 file 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 * ``attr:name'' 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 attr_accessor(name) but deprecated. * The last form is equivalent to attr_reader(name) 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 * symbol.id2name. * 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) * (@name) and a corresponding access method to read it. * Also creates a method called name= 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=]