diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-08 21:24:24 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-08 21:24:24 +0000 |
commit | 8dd0df05fa607eb9a253c04c4aa153c3f0fb38b5 (patch) | |
tree | c0a7cc96069f60fbd810f36369bb19f58a0c04bb /string.c | |
parent | 8571b99d0d9f5127d258eae47a956d0a1b47a7f6 (diff) | |
download | ruby-8dd0df05fa607eb9a253c04c4aa153c3f0fb38b5.tar.gz |
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
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2520,8 +2520,8 @@ str_uplus(VALUE str) * * If the string is frozen, then return the string itself. * - * If the string is not frozen, then duplicate the string - * freeze it and return it. + * If the string is not frozen, return a frozen, possibly pre-existing + * copy of it. */ static VALUE str_uminus(VALUE str) |