summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index bd2a9bba41..1085e81c54 100644
--- a/io.c
+++ b/io.c
@@ -1005,7 +1005,7 @@ io_fread(ptr, len, fptr)
clearerr(fptr->f);
}
saved_errno = errno;
- rb_warn("nonblocking IO#read is obsolete; use IO#readpartial or IO#sysread");
+ rb_warning("nonblocking IO#read is obsolete; use IO#readpartial or IO#sysread");
errno = saved_errno;
}
if (len == n) return 0;