authorgravatar for r00ster91@proton.meWooster <r00ster91@proton.me> 2024-07-22 09:00:08+09:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2024-07-22 00:00:08+00:00
log600e96f450fa820f29798c49264c33901df380ee
tree922905b063a9be411ed51260b75f6fb66dcf5937
parent42d9017feb0fe731961f5f7b1242ad12644a5074
signaturebadge-check Signed by PGP key B5690EEEBB952194

debug: correct dump_hex and dump_hex_fallible casing (#19296)

#1097 is closed.

1 files changed, 4 insertions(+), 4 deletions(-)

lib/std/debug.zig+4-4
...@@ -115,14 +115,14 @@ pub fn getSelfDebugInfo() !*DebugInfo {...@@ -115,14 +115,14 @@ pub fn getSelfDebugInfo() !*DebugInfo {
115115
116/// Tries to print a hexadecimal view of the bytes, unbuffered, and ignores any error returned.116/// Tries to print a hexadecimal view of the bytes, unbuffered, and ignores any error returned.
117/// Obtains the stderr mutex while dumping.117/// Obtains the stderr mutex while dumping.
118pub fn dump_hex(bytes: []const u8) void {118pub fn dumpHex(bytes: []const u8) void {
119 lockStdErr();119 lockStdErr();
120 defer unlockStdErr();120 defer unlockStdErr();
121 dump_hex_fallible(bytes) catch {};121 dumpHexFallible(bytes) catch {};
122}122}
123123
124/// Prints a hexadecimal view of the bytes, unbuffered, returning any error that occurs.124/// Prints a hexadecimal view of the bytes, unbuffered, returning any error that occurs.
125pub fn dump_hex_fallible(bytes: []const u8) !void {125pub fn dumpHexFallible(bytes: []const u8) !void {
126 const stderr = std.io.getStdErr();126 const stderr = std.io.getStdErr();
127 const ttyconf = std.io.tty.detectConfig(stderr);127 const ttyconf = std.io.tty.detectConfig(stderr);
128 const writer = stderr.writer();128 const writer = stderr.writer();
...@@ -2950,5 +2950,5 @@ pub inline fn inValgrind() bool {...@@ -2950,5 +2950,5 @@ pub inline fn inValgrind() bool {
2950}2950}
29512951
2952test {2952test {
2953 _ = &dump_hex;2953 _ = &dumpHex;
2954}2954}