@@ -7,7 +7,7 @@ const result = cdp.result;
77const getMsg = cdp .getMsg ;
88const stringify = cdp .stringify ;
99
10- const TargetMethods = enum {
10+ const Methods = enum {
1111 setDiscoverTargets ,
1212 setAutoAttach ,
1313 getTargetInfo ,
@@ -23,12 +23,12 @@ pub fn target(
2323 scanner : * std.json.Scanner ,
2424 ctx : * Ctx ,
2525) ! []const u8 {
26- const method = std .meta .stringToEnum (TargetMethods , action ) orelse
26+ const method = std .meta .stringToEnum (Methods , action ) orelse
2727 return error .UnknownMethod ;
2828 return switch (method ) {
29- .setDiscoverTargets = > targetSetDiscoverTargets (alloc , id , scanner , ctx ),
30- .setAutoAttach = > tagetSetAutoAttach (alloc , id , scanner , ctx ),
31- .getTargetInfo = > tagetGetTargetInfo (alloc , id , scanner , ctx ),
29+ .setDiscoverTargets = > setDiscoverTargets (alloc , id , scanner , ctx ),
30+ .setAutoAttach = > setAutoAttach (alloc , id , scanner , ctx ),
31+ .getTargetInfo = > getTargetInfo (alloc , id , scanner , ctx ),
3232 .getBrowserContexts = > getBrowserContexts (alloc , id , scanner , ctx ),
3333 .createBrowserContext = > createBrowserContext (alloc , id , scanner , ctx ),
3434 .createTarget = > createTarget (alloc , id , scanner , ctx ),
@@ -39,7 +39,7 @@ const PageTargetID = "CFCD6EC01573CF29BB638E9DC0F52DDC";
3939const BrowserTargetID = "2d2bdef9-1c95-416f-8c0e-83f3ab73a30c" ;
4040const BrowserContextID = "65618675CB7D3585A95049E9DFE95EA9" ;
4141
42- fn targetSetDiscoverTargets (
42+ fn setDiscoverTargets (
4343 alloc : std.mem.Allocator ,
4444 id : ? u16 ,
4545 scanner : * std.json.Scanner ,
@@ -69,7 +69,7 @@ const TargetFilter = struct {
6969 exclude : ? bool = null ,
7070};
7171
72- fn tagetSetAutoAttach (
72+ fn setAutoAttach (
7373 alloc : std.mem.Allocator ,
7474 id : ? u16 ,
7575 scanner : * std.json.Scanner ,
@@ -100,7 +100,7 @@ fn tagetSetAutoAttach(
100100 return result (alloc , id orelse msg .id .? , null , null , msg .sessionID );
101101}
102102
103- fn tagetGetTargetInfo (
103+ fn getTargetInfo (
104104 alloc : std.mem.Allocator ,
105105 id : ? u16 ,
106106 scanner : * std.json.Scanner ,
0 commit comments