| ... | @@ -243,7 +243,7 @@ pub const File = struct { | ... | @@ -243,7 +243,7 @@ pub const File = struct { |
| 243 | | 243 | |
| 244 | pub const SetEndPosError = os.TruncateError; | 244 | pub const SetEndPosError = os.TruncateError; |
| 245 | | 245 | |
| 246 | /// Shrinks or expands the file. | 246 | /// Shrinks (truncates) or expands the file. |
| 247 | /// The file offset after this call is left unchanged. | 247 | /// The file offset after this call is left unchanged. |
| 248 | pub fn setEndPos(self: File, length: u64) SetEndPosError!void { | 248 | pub fn setEndPos(self: File, length: u64) SetEndPosError!void { |
| 249 | try os.ftruncate(self.handle, length); | 249 | try os.ftruncate(self.handle, length); |