From fdb2421c21f94d1a7686c347a3fa189d0874d26d Mon Sep 17 00:00:00 2001 From: usa Date: Sun, 18 Mar 2018 15:21:39 +0000 Subject: merge revision(s) 60294: [Backport #11638] Clarify the behavior of IO.write without offset in write mode. https://github.com/ruby/ruby/pull/1571 Patch by @takanabe [fix GH-1571] [Bug #11638][ruby-core:71277] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@62823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'io.c') diff --git a/io.c b/io.c index 4fd3f69fb3..524f7d62ef 100644 --- a/io.c +++ b/io.c @@ -10023,8 +10023,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. * * If the last argument is a hash, it specifies option for internal * open(). The key would be the following. open_args: is exclusive -- cgit v1.2.3