Skip to content

Commit

Permalink
Fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
keichi committed Jul 17, 2023
1 parent 53fe541 commit 9dbbeda
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 63 deletions.
4 changes: 2 additions & 2 deletions benchmark/bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec
new Destruct.Spec({ mode: Destruct.Mode.LE })
.field("x", Destruct.UInt16)
.field("y", Destruct.UInt16)
.field("z", Destruct.UInt16)
.field("z", Destruct.UInt16),
);

// structron
Expand All @@ -47,7 +47,7 @@ const PointsStruct = new Struct()
.addMember(Struct.TYPES.USHORT_LE, "z"),
"points",
0,
"len"
"len",
);

// Prepare input
Expand Down
2 changes: 1 addition & 1 deletion example/tcp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const tcpHeader = new Parser()

const buf = Buffer.from(
"e8a203e108e177e13d20756b801829d3004100000101080a2ea486ba793310bc",
"hex"
"hex",
);

console.log(tcpHeader.parse(buf));
Loading

0 comments on commit 9dbbeda

Please sign in to comment.