symbol.c: remove `id2name` reference from documents.

parent ce054bd0
...@@ -510,7 +510,7 @@ mrb_method_missing(mrb_state *mrb, mrb_sym name, mrb_value self, mrb_value args) ...@@ -510,7 +510,7 @@ mrb_method_missing(mrb_state *mrb, mrb_sym name, mrb_value self, mrb_value args)
* # ... * # ...
* end * end
* def method_missing(methId) * def method_missing(methId)
* str = methId.id2name * str = methId.to_s
* romanToInt(str) * romanToInt(str)
* end * end
* end * end
......
...@@ -1873,7 +1873,7 @@ mrb_str_init(mrb_state *mrb, mrb_value self) ...@@ -1873,7 +1873,7 @@ mrb_str_init(mrb_state *mrb, mrb_value self)
* str.to_sym => symbol * str.to_sym => symbol
* *
* Returns the <code>Symbol</code> corresponding to <i>str</i>, creating the * Returns the <code>Symbol</code> corresponding to <i>str</i>, creating the
* symbol if it did not previously exist. See <code>Symbol#id2name</code>. * symbol if it did not previously exist.
* *
* "Koala".intern #=> :Koala * "Koala".intern #=> :Koala
* s = 'cat'.to_sym #=> :cat * s = 'cat'.to_sym #=> :cat
......
...@@ -389,12 +389,11 @@ mrb_init_symtbl(mrb_state *mrb) ...@@ -389,12 +389,11 @@ mrb_init_symtbl(mrb_state *mrb)
/* 15.2.11.3.3 */ /* 15.2.11.3.3 */
/* /*
* call-seq: * call-seq:
* sym.id2name -> string * sym.to_s -> string
* sym.to_s -> string
* *
* Returns the name or string corresponding to <i>sym</i>. * Returns the name or string corresponding to <i>sym</i>.
* *
* :fred.id2name #=> "fred" * :fred.to_s #=> "fred"
*/ */
static mrb_value static mrb_value
sym_to_s(mrb_state *mrb, mrb_value sym) sym_to_s(mrb_state *mrb, mrb_value sym)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment