diff --git a/io.c b/io.c index e3d93059f1..efde08f45f 100644 --- a/io.c +++ b/io.c @@ -7488,10 +7488,10 @@ rb_f_print(int argc, const VALUE *argv) * ios.putc(obj) -> obj * * If obj is Numeric, write the character whose code is - * the least-significant byte of obj, otherwise write the first byte - * of the string representation of obj to ios. Note: This - * method is not safe for use with multi-byte characters as it will truncate - * them. + * the least-significant byte of obj. + * If obj is String, write the first character + * of obj to ios. + * Otherwise, raise TypeError. * * $stdout.putc "A" * $stdout.putc 65