Skip to content

Commit aa7e5f3

Browse files
authored
Update codecs.md
1 parent abf5acb commit aa7e5f3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

doc/codecs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ export default class PositionCodec extends Codec {
8787

8888
offset += this.int8Codec.getByteLength();
8989

90-
const duration = this.int16Codec.decode(buffer, offset);
90+
const x = this.int16Codec.decode(buffer, offset);
9191

9292
offset += this.int16Codec.getByteLength();
9393

94-
const position = this.int8Codec.decode(buffer, offset);
94+
const y = this.int8Codec.decode(buffer, offset);
9595

9696
return { id, x, y };
9797
}

0 commit comments

Comments
 (0)