diff options
| author | Wooster <wooster0@proton.me> | 2024-07-22 09:00:08 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-22 00:00:08 +0000 |
| commit | 600e96f450fa820f29798c49264c33901df380ee (patch) | |
| tree | 922905b063a9be411ed51260b75f6fb66dcf5937 | |
| parent | 42d9017feb0fe731961f5f7b1242ad12644a5074 (diff) | |
| download | zig-600e96f450fa820f29798c49264c33901df380ee.tar.gz zig-600e96f450fa820f29798c49264c33901df380ee.zip | |
debug: correct dump_hex and dump_hex_fallible casing (#19296)
#1097 is closed.
| -rw-r--r-- | lib/std/debug.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig index bc7023eae2..4fd041df98 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -115,14 +115,14 @@ pub fn getSelfDebugInfo() !*DebugInfo { /// Tries to print a hexadecimal view of the bytes, unbuffered, and ignores any error returned. /// Obtains the stderr mutex while dumping. -pub fn dump_hex(bytes: []const u8) void { +pub fn dumpHex(bytes: []const u8) void { lockStdErr(); defer unlockStdErr(); - dump_hex_fallible(bytes) catch {}; + dumpHexFallible(bytes) catch {}; } /// Prints a hexadecimal view of the bytes, unbuffered, returning any error that occurs. -pub fn dump_hex_fallible(bytes: []const u8) !void { +pub fn dumpHexFallible(bytes: []const u8) !void { const stderr = std.io.getStdErr(); const ttyconf = std.io.tty.detectConfig(stderr); const writer = stderr.writer(); @@ -2950,5 +2950,5 @@ pub inline fn inValgrind() bool { } test { - _ = &dump_hex; + _ = &dumpHex; } |
