summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-30 08:10:04 +0000
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-30 08:10:04 +0000
commite4879afe3e6c53871ef0b384017a25ad7eeb9d74 (patch)
tree7f871886d1cac53a8ce8a32e2a1ac334a66c280f /string.c
parent835186a322d8a812cdbeb2f00ecd642cffde9fee (diff)
* parse.y (rb_str_dynamic_intern): [DOC] move rdoc from rb_str_intern.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/string.c b/string.c
index 46cccac6e8..511374c7b8 100644
--- a/string.c
+++ b/string.c
@@ -7418,26 +7418,6 @@ rb_str_crypt(VALUE str, VALUE salt)
}
-/*
- * call-seq:
- * str.intern -> symbol
- * str.to_sym -> symbol
- *
- * Returns the <code>Symbol</code> corresponding to <i>str</i>, creating the
- * symbol if it did not previously exist. See <code>Symbol#id2name</code>.
- *
- * "Koala".intern #=> :Koala
- * s = 'cat'.to_sym #=> :cat
- * s == :cat #=> true
- * s = '@cat'.to_sym #=> :@cat
- * s == :@cat #=> true
- *
- * This can also be used to create symbols that cannot be represented using the
- * <code>:xxx</code> notation.
- *
- * 'cat and dog'.to_sym #=> :"cat and dog"
- */
-
VALUE
rb_str_intern(VALUE s)
{