summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-07 14:28:31 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-07 14:28:31 +0000
commit072ef48c5bde371c096b76ce0db13b415312b408 (patch)
tree559137625be42e692217ce025947dd9b1571afa1
parent4e9537bf33a13cfbfb7159a367841250fd2d0fe2 (diff)
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_4@62692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--io.c4
-rw-r--r--version.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/io.c b/io.c
index 2847980610..71ea478ef7 100644
--- a/io.c
+++ b/io.c
@@ -10102,8 +10102,8 @@ io_s_write(int argc, VALUE *argv, int binary)
* Opens the file, optionally seeks to the given <i>offset</i>, writes
* <i>string</i>, then returns the length written.
* <code>write</code> ensures the file is closed before returning.
- * If <i>offset</i> is not given, the file is truncated. Otherwise,
- * it is not truncated.
+ * If <i>offset</i> 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"
diff --git a/version.h b/version.h
index e8dd5b68f4..3d404f2b9d 100644
--- a/version.h
+++ b/version.h
@@ -1,6 +1,6 @@
#define RUBY_VERSION "2.4.4"
#define RUBY_RELEASE_DATE "2018-03-07"
-#define RUBY_PATCHLEVEL 254
+#define RUBY_PATCHLEVEL 255
#define RUBY_RELEASE_YEAR 2018
#define RUBY_RELEASE_MONTH 3