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

To aid people searching autodocs.
This commit is contained in:
Andrew Kelley 2022-09-09 18:48:39 -07:00
parent 9e070b653c
commit 5739099989

View file

@ -243,7 +243,7 @@ pub const File = struct {
pub const SetEndPosError = os.TruncateError; 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. /// The file offset after this call is left unchanged.
pub fn setEndPos(self: File, length: u64) SetEndPosError!void { pub fn setEndPos(self: File, length: u64) SetEndPosError!void {
try os.ftruncate(self.handle, length); try os.ftruncate(self.handle, length);