From 02c5f05e2f0e8e786f0530014e35c1520efd0084 Mon Sep 17 00:00:00 2001 From: AdriĆ  Arrufat Date: Thu, 4 Dec 2025 11:10:30 +0900 Subject: std: replace usages of std.mem.indexOf with std.mem.find --- lib/std/fs/File.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/std/fs/File.zig') diff --git a/lib/std/fs/File.zig b/lib/std/fs/File.zig index 073ab6777b..2601c7643a 100644 --- a/lib/std/fs/File.zig +++ b/lib/std/fs/File.zig @@ -179,7 +179,7 @@ pub fn isCygwinPty(file: File) bool { // The name we get from NtQueryInformationFile will be prefixed with a '\', e.g. \msys-1888ae32e00d56aa-pty0-to-master return (std.mem.startsWith(u16, name_wide, &[_]u16{ '\\', 'm', 's', 'y', 's', '-' }) or std.mem.startsWith(u16, name_wide, &[_]u16{ '\\', 'c', 'y', 'g', 'w', 'i', 'n', '-' })) and - std.mem.indexOf(u16, name_wide, &[_]u16{ '-', 'p', 't', 'y' }) != null; + std.mem.find(u16, name_wide, &[_]u16{ '-', 'p', 't', 'y' }) != null; } /// Returns whether or not ANSI escape codes will be treated as such, -- cgit v1.2.3