diff --git a/io.c b/io.c index 6226108ad6..3000e94d9a 100644 --- a/io.c +++ b/io.c @@ -7952,6 +7952,11 @@ rb_io_initialize(int argc, VALUE *argv, VALUE io) * mode and permission bits are platform dependent; on Unix systems, see * open(2) and chmod(2) man pages for details. * + * The new File object is buffered mode (or non-sync mode), unless + * +filename+ is a tty. + * See IO#flush, IO#fsync, IO#fdatasync, and IO#sync= + * about sync mode. + * * === Examples * * f = File.new("testfile", "r")