aboutsummaryrefslogtreecommitdiffstats
path: root/struct.c
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-16 06:58:43 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-16 06:58:43 +0000
commit8b58cef52c1ec8ab999d7ce992866a0d24a53063 (patch)
treed2dc4c6aa6f6e93cb505f207370a384baa65328b /struct.c
parentbe5cadf9459223830de2e20d96cc3d5ef1e34a02 (diff)
downloadruby-8b58cef52c1ec8ab999d7ce992866a0d24a53063.tar.gz
* struct.c: Standardize a method signature of Struct#[]=.
[ci skip][fix GH-1095] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/struct.c b/struct.c
index df627b3955..60ef6d8cfd 100644
--- a/struct.c
+++ b/struct.c
@@ -896,11 +896,11 @@ rb_struct_aref(VALUE s, VALUE idx)
/*
* call-seq:
- * struct[name] = obj -> obj
- * struct[index] = obj -> obj
+ * struct[member] = obj -> obj
+ * struct[index] = obj -> obj
*
* Attribute Assignment---Sets the value of the given struct +member+ or
- * the member at the given +index+. Raises NameError if the +name+ does not
+ * the member at the given +index+. Raises NameError if the +member+ does not
* exist and IndexError if the +index+ is out of range.
*
* Customer = Struct.new(:name, :address, :zip)