Document that Kernel#p is for debugging and may be uninterruptible [ci skip]

Fixes [Bug #18810]
This commit is contained in:
Jeremy Evans 2023-06-22 16:23:44 -07:00
parent 00dbee94ac
commit ae609a995e
Notes: git 2023-08-30 20:21:22 +00:00

4
io.c
View File

@ -8944,6 +8944,10 @@ rb_p_result(int argc, const VALUE *argv)
* 0..4 * 0..4
* [0..4, 0..4, 0..4] * [0..4, 0..4, 0..4]
* *
* Kernel#p is designed for debugging purposes.
* Ruby implementations may define Kernel#p to be uninterruptible
* in whole or in part.
* On CRuby, Kernel#p's writing of data is uninterruptible.
*/ */
static VALUE static VALUE