symbol.c: remove id2name reference from documents.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-05-03 15:33:39 +09:00
parent ce054bd078
commit 0c8cd60097
3 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -510,7 +510,7 @@ mrb_method_missing(mrb_state *mrb, mrb_sym name, mrb_value self, mrb_value args)
* # ...
* end
* def method_missing(methId)
* str = methId.id2name
* str = methId.to_s
* romanToInt(str)
* end
* end
+1 -1
View File
@@ -1873,7 +1873,7 @@ mrb_str_init(mrb_state *mrb, mrb_value self)
* 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>.
* symbol if it did not previously exist.
*
* "Koala".intern #=> :Koala
* s = 'cat'.to_sym #=> :cat
+2 -3
View File
@@ -389,12 +389,11 @@ mrb_init_symtbl(mrb_state *mrb)
/* 15.2.11.3.3 */
/*
* call-seq:
* sym.id2name -> string
* sym.to_s -> string
* sym.to_s -> string
*
* Returns the name or string corresponding to <i>sym</i>.
*
* :fred.id2name #=> "fred"
* :fred.to_s #=> "fred"
*/
static mrb_value
sym_to_s(mrb_state *mrb, mrb_value sym)