aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Io/File.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-12-08 23:14:34 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-12-23 22:15:09 -0800
commit03526c59d4e2a00f83347cf06c741a3ed4fec520 (patch)
tree42f6f8f29ab7d233ae7f043021f2fdeb16ff3b40 /lib/std/Io/File.zig
parent5b436d2c5125b9cf9a08b3bff0dcb0248c4d1ec0 (diff)
downloadzig-03526c59d4e2a00f83347cf06c741a3ed4fec520.tar.gz
zig-03526c59d4e2a00f83347cf06c741a3ed4fec520.zip
std.debug: fix printLineFromFile
Diffstat (limited to 'lib/std/Io/File.zig')
-rw-r--r--lib/std/Io/File.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Io/File.zig b/lib/std/Io/File.zig
index 7718b56f8a..ccf18a8f56 100644
--- a/lib/std/Io/File.zig
+++ b/lib/std/Io/File.zig
@@ -280,7 +280,7 @@ pub fn sync(file: File, io: Io) SyncError!void {
/// See also:
/// * `enableAnsiEscapeCodes`
/// * `supportsAnsiEscapeCodes`.
-pub fn isTty(file: File, io: Io) bool {
+pub fn isTty(file: File, io: Io) Io.Cancelable!bool {
return io.vtable.fileIsTty(io.userdata, file);
}