Skip to content

Commit 2a0006c

Browse files
committed
[DOC] Mention that rb_id2str() returns a frozen string
1 parent 2fc357c commit 2a0006c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/ruby/internal/symbol.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ ID rb_check_id(volatile VALUE *namep);
186186
ID rb_to_id(VALUE str);
187187

188188
/**
189-
* Identical to rb_id2name(), except it returns a Ruby's String instead of C's.
189+
* Identical to rb_id2name(), except it returns a frozen Ruby String instead of
190+
* a C String.
190191
*
191192
* @param[in] id An id to query.
192193
* @retval RUBY_Qfalse No such id ever existed in the history.

0 commit comments

Comments
 (0)