Skip to content

Commit 2c61512

Browse files
committed
docs: minor updates to example code
1 parent 9f68498 commit 2c61512

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const parser = new Parser()
118118
// Unsigned 8-bit integer
119119
.uint8("b")
120120
// Signed 16-bit integer (big endian)
121-
.int16be("c");
121+
.int16be("c")
122122
// signed 64-bit integer (big endian)
123123
.int64be("d")
124124
```
@@ -554,7 +554,7 @@ you need to call `.useContextVars()` to enable it.
554554
.array("data", {
555555
type: "int32",
556556
length: function() {
557-
return this.$parent.header.length
557+
return this.$parent.header.length;
558558
}
559559
});
560560
```
@@ -573,7 +573,7 @@ you need to call `.useContextVars()` to enable it.
573573
.array("data", {
574574
type: "int32",
575575
length: function() {
576-
return this.$root.header.length
576+
return this.$root.header.length;
577577
}
578578
}),
579579
});

0 commit comments

Comments
 (0)