mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
std.fs.File.setEndPos: add the word "truncate" to doc comments
To aid people searching autodocs.
This commit is contained in:
parent
9e070b653c
commit
5739099989
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue