diff --git a/io.c b/io.c index 8dbdfad8ec..f01dea6873 100644 --- a/io.c +++ b/io.c @@ -10287,8 +10287,8 @@ io_s_write(int argc, VALUE *argv, int binary) * Opens the file, optionally seeks to the given offset, writes * string, then returns the length written. * write ensures the file is closed before returning. - * If offset is not given, the file is truncated. Otherwise, - * it is not truncated. + * If offset is not given in write mode, the file is truncated. + * Otherwise, it is not truncated. * * IO.write("testfile", "0123456789", 20) #=> 10 * # File could contain: "This is line one\nThi0123456789two\nThis is line three\nAnd so on...\n"