mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix a typo in instance_variable_set documentation
This commit is contained in:
parent
0213f5b08a
commit
f48fce4981
Notes:
git
2020-06-11 09:49:35 +09:00
1 changed files with 1 additions and 1 deletions
2
object.c
2
object.c
|
@ -2957,7 +2957,7 @@ rb_obj_ivar_get(VALUE obj, VALUE iv)
|
|||
* obj.instance_variable_set(string, obj) -> obj
|
||||
*
|
||||
* Sets the instance variable named by <i>symbol</i> to the given
|
||||
* object. This may circumvent the the encapsulation intended by
|
||||
* object. This may circumvent the encapsulation intended by
|
||||
* the author of the class, so it should be used with care.
|
||||
* The variable does not have to exist prior to this call.
|
||||
* If the instance variable name is passed as a string, that string
|
||||
|
|
Loading…
Add table
Reference in a new issue