authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-09-09 18:48:39-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-09-09 18:48:39-07:00
log57390999894a74f289a6eace6deed6c17b65f298
tree88fafbcbc30d4429fe885cd24230a7312cb6b70c
parent9e070b653c89a9216f9dd9f78ed7c78c11460ac7

std.fs.File.setEndPos: add the word "truncate" to doc comments

To aid people searching autodocs.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/fs/file.zig+1-1
...@@ -243,7 +243,7 @@ pub const File = struct {...@@ -243,7 +243,7 @@ pub const File = struct {
243243
244 pub const SetEndPosError = os.TruncateError;244 pub const SetEndPosError = os.TruncateError;
245245
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);