diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-12-22 12:50:46 +0100 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-12-22 12:50:46 +0100 |
| commit | aa0249d74e573742db3567f589fc6e4a00e1fff8 (patch) | |
| tree | cce61cb7f02072d205a12ae451922f0bf09c13ce /lib/std/Random | |
| parent | 6b9125cbe662d530160e0732c856aa0da86894c0 (diff) | |
| parent | 02c5f05e2f0e8e786f0530014e35c1520efd0084 (diff) | |
| download | zig-aa0249d74e573742db3567f589fc6e4a00e1fff8.tar.gz zig-aa0249d74e573742db3567f589fc6e4a00e1fff8.zip | |
Merge pull request 'std.ascii: rename indexOf functions to find' (#30101) from adria/zig:indexof-find into master
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/30101
Reviewed-by: Andrew Kelley <andrewrk@noreply.codeberg.org>
Reviewed-by: mlugg <mlugg@noreply.codeberg.org>
Diffstat (limited to 'lib/std/Random')
| -rw-r--r-- | lib/std/Random/benchmark.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/Random/benchmark.zig b/lib/std/Random/benchmark.zig index 4f6198dee7..57dc69051e 100644 --- a/lib/std/Random/benchmark.zig +++ b/lib/std/Random/benchmark.zig @@ -180,7 +180,7 @@ pub fn main() !void { if (bench_prngs) { if (bench_long) { inline for (prngs) |R| { - if (filter == null or std.mem.indexOf(u8, R.name, filter.?) != null) { + if (filter == null or std.mem.find(u8, R.name, filter.?) != null) { try stdout.print("{s} (long outputs)\n", .{R.name}); try stdout.flush(); @@ -191,7 +191,7 @@ pub fn main() !void { } if (bench_short) { inline for (prngs) |R| { - if (filter == null or std.mem.indexOf(u8, R.name, filter.?) != null) { + if (filter == null or std.mem.find(u8, R.name, filter.?) != null) { try stdout.print("{s} (short outputs)\n", .{R.name}); try stdout.flush(); @@ -204,7 +204,7 @@ pub fn main() !void { if (bench_csprngs) { if (bench_long) { inline for (csprngs) |R| { - if (filter == null or std.mem.indexOf(u8, R.name, filter.?) != null) { + if (filter == null or std.mem.find(u8, R.name, filter.?) != null) { try stdout.print("{s} (cryptographic, long outputs)\n", .{R.name}); try stdout.flush(); @@ -215,7 +215,7 @@ pub fn main() !void { } if (bench_short) { inline for (csprngs) |R| { - if (filter == null or std.mem.indexOf(u8, R.name, filter.?) != null) { + if (filter == null or std.mem.find(u8, R.name, filter.?) != null) { try stdout.print("{s} (cryptographic, short outputs)\n", .{R.name}); try stdout.flush(); |
