1
0
Fork 0
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:
Jean byroot Boussier 2020-06-10 23:54:15 +02:00 committed by Jeremy Evans
parent 0213f5b08a
commit f48fce4981
Notes: git 2020-06-11 09:49:35 +09:00

View file

@ -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