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 {
115115
116116/// Tries to print a hexadecimal view of the bytes, unbuffered, and ignores any error returned.
117117/// Obtains the stderr mutex while dumping.
118pub fn dump_hex(bytes: []const u8) void {
118pub fn dumpHex(bytes: []const u8) void {
119119 lockStdErr();
120120 defer unlockStdErr();
121 dump_hex_fallible(bytes) catch {};
121 dumpHexFallible(bytes) catch {};
122122}
123123
124124/// 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 {
126126 const stderr = std.io.getStdErr();
127127 const ttyconf = std.io.tty.detectConfig(stderr);
128128 const writer = stderr.writer();
......@@ -2950,5 +2950,5 @@ pub inline fn inValgrind() bool {
29502950}
29512951
29522952test {
2953 _ = &dump_hex;
2953 _ = &dumpHex;
29542954}