Skip to content

Commit 600e96f

Browse files
authored
debug: correct dump_hex and dump_hex_fallible casing (#19296)
#1097 is closed.
1 parent 42d9017 commit 600e96f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/std/debug.zig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
118-
pub fn dump_hex(bytes: []const u8) void {
118+
pub 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.
125-
pub fn dump_hex_fallible(bytes: []const u8) !void {
125+
pub 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

29522952
test {
2953-
_ = &dump_hex;
2953+
_ = &dumpHex;
29542954
}

0 commit comments

Comments
 (0)