diff options
author | Jeremy Evans <code@jeremyevans.net> | 2020-06-10 10:49:28 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2020-06-10 10:49:28 -0700 |
commit | 573e8d7736c84149ae298f4a8ed532525b6645d0 (patch) | |
tree | 6e44fa820082928905be7509d3384ea9a852947c /object.c | |
parent | 96d184aa49ac48298501722d9d0c50180df04122 (diff) | |
download | ruby-573e8d7736c84149ae298f4a8ed532525b6645d0.tar.gz |
Change language used in instance_variable_set documentation [ci skip]
This uses less harsh language recommended by duerst.
Fixes [Misc #15265]
Fixes [Misc #15748]
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2957,9 +2957,9 @@ 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, thereby frustrating the efforts of the class's - * author to attempt to provide proper encapsulation. The variable - * does not have to exist prior to this call. + * object. This may circumvent the 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 * is converted to a symbol. * |