Project

General

Profile

Actions

Bug #11638

closed

[doc] misleading IO.write offset description

Added by akostadinov (Aleksandar Kostadinov) about 9 years ago. Updated over 6 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:71277]

Description

"If offset is not given, the file is truncated. Otherwise, it is not truncated."

The above is NOT true when 'a' mode is used. I'd suggest to clarify in documentation that offset is usually 0 if not specified but in 'a' mode it is at end of file or something along these lines.

http://ruby-doc.org/core-2.2.0/IO.html#method-c-write

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0