1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

string.c (str_uminus): update doc for deduplication

As of r57698, String#-@ can return pre-existing strings.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2017-03-08 21:24:24 +00:00
parent 4e00aaafbe
commit e064879e5a

View file

@ -2520,8 +2520,8 @@ str_uplus(VALUE str)
* *
* If the string is frozen, then return the string itself. * If the string is frozen, then return the string itself.
* *
* If the string is not frozen, then duplicate the string * If the string is not frozen, return a frozen, possibly pre-existing
* freeze it and return it. * copy of it.
*/ */
static VALUE static VALUE
str_uminus(VALUE str) str_uminus(VALUE str)