Rename std.debug.print to dbg_print
This commit is contained in:
parent
ee49da6f22
commit
c3a468d090
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
|||
const std = @import("std");
|
||||
|
||||
const dbg_print = std.debug.print;
|
||||
|
||||
|
||||
pub fn extract(allocator: std.mem.Allocator, json_string: []const u8) !void {
|
||||
const parsed = try std.json.parseFromSlice(
|
||||
|
@ -17,12 +19,12 @@ pub fn extract(allocator: std.mem.Allocator, json_string: []const u8) !void {
|
|||
if (item == .object) {
|
||||
if (item.object.get("OriginalTrackUrl")) |url_value| {
|
||||
if (url_value == .string) {
|
||||
std.debug.print("OriginalTrackUrl: {s}\n", .{url_value.string});
|
||||
dbg_print("OriginalTrackUrl: {s}\n", .{url_value.string});
|
||||
}
|
||||
}
|
||||
if (item.object.get("title")) |title_value| {
|
||||
if (title_value == .string) {
|
||||
std.debug.print("Title: {s}\n", .{title_value.string});
|
||||
dbg_print("Title: {s}\n", .{title_value.string});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue