aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/io.c b/io.c
index 1074689560..4bcddf4cf9 100644
--- a/io.c
+++ b/io.c
@@ -7124,8 +7124,8 @@ rb_f_putc(VALUE recv, VALUE ch)
}
-static int
-str_end_with_asciichar(VALUE str, int c)
+int
+rb_str_end_with_asciichar(VALUE str, int c)
{
long len = RSTRING_LEN(str);
const char *ptr = RSTRING_PTR(str);
@@ -7202,7 +7202,7 @@ rb_io_puts(int argc, const VALUE *argv, VALUE out)
string:
rb_io_write(out, line);
if (RSTRING_LEN(line) == 0 ||
- !str_end_with_asciichar(line, '\n')) {
+ !rb_str_end_with_asciichar(line, '\n')) {
rb_io_write(out, rb_default_rs);
}
}