diff options
| author | AdriĆ Arrufat <adria.arrufat@gmail.com> | 2025-12-04 11:10:30 +0900 |
|---|---|---|
| committer | mlugg <mlugg@noreply.codeberg.org> | 2025-12-05 14:31:27 +0100 |
| commit | 02c5f05e2f0e8e786f0530014e35c1520efd0084 (patch) | |
| tree | 38b298fa7849d78c7d02294e7bd3b7aed2b7e52c /lib/std/Build/Step/Run.zig | |
| parent | 1a420a8dca34db8b632b0451d022ef92f78f96ac (diff) | |
| download | zig-02c5f05e2f0e8e786f0530014e35c1520efd0084.tar.gz zig-02c5f05e2f0e8e786f0530014e35c1520efd0084.zip | |
std: replace usages of std.mem.indexOf with std.mem.find
Diffstat (limited to 'lib/std/Build/Step/Run.zig')
| -rw-r--r-- | lib/std/Build/Step/Run.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/Build/Step/Run.zig b/lib/std/Build/Step/Run.zig index 764d2830ff..1cc798bf30 100644 --- a/lib/std/Build/Step/Run.zig +++ b/lib/std/Build/Step/Run.zig @@ -1509,7 +1509,7 @@ fn runCommand( } }, .expect_stderr_match => |match| { - if (mem.indexOf(u8, generic_result.stderr.?, match) == null) { + if (mem.find(u8, generic_result.stderr.?, match) == null) { return step.fail( \\========= expected to find in stderr: ========= \\{s} @@ -1535,7 +1535,7 @@ fn runCommand( } }, .expect_stdout_match => |match| { - if (mem.indexOf(u8, generic_result.stdout.?, match) == null) { + if (mem.find(u8, generic_result.stdout.?, match) == null) { return step.fail( \\========= expected to find in stdout: ========= \\{s} |
