diff options
author | watson1978 <watson1978@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-14 17:04:56 +0000 |
---|---|---|
committer | watson1978 <watson1978@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-14 17:04:56 +0000 |
commit | 91061e74e442351c79385c9e287532579ec4e3fc (patch) | |
tree | 09203d8f05b7e7efe2d3efa7dc6d36a820b33afa /variable.c | |
parent | 1761f458372ce8f2bb537ce97c61157328a9e824 (diff) |
Fix documentation in Object#remove_instance_variable
It should be described that the string argument will be accept like Object#instance_variable_get.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/variable.c b/variable.c index 9afed854ae..96073df903 100644 --- a/variable.c +++ b/variable.c @@ -1668,9 +1668,11 @@ check_id_type(VALUE obj, VALUE *pname, /* * call-seq: * obj.remove_instance_variable(symbol) -> obj + * obj.remove_instance_variable(string) -> obj * * Removes the named instance variable from <i>obj</i>, returning that * variable's value. + * String arguments are converted to symbols. * * class Dummy * attr_reader :var |