From 57390999894a74f289a6eace6deed6c17b65f298 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 9 Sep 2022 18:48:39 -0700 Subject: [PATCH] std.fs.File.setEndPos: add the word "truncate" to doc comments To aid people searching autodocs. --- lib/std/fs/file.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/fs/file.zig b/lib/std/fs/file.zig index 3792e1c1f29b62ba07f1b175fbf1641c3ed23022..dc7b5b8a5b4c89a66d0cd63bb726e98f573c9305 100644 --- a/lib/std/fs/file.zig +++ b/lib/std/fs/file.zig @@ -243,7 +243,7 @@ pub const File = struct { pub const SetEndPosError = os.TruncateError; - /// Shrinks or expands the file. + /// Shrinks (truncates) or expands the file. /// The file offset after this call is left unchanged. pub fn setEndPos(self: File, length: u64) SetEndPosError!void { try os.ftruncate(self.handle, length); -- 2.54.0