Skip to content

Commit d66a1fb

Browse files
committed
doc: minor comment
1 parent 9dab7b0 commit d66a1fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/molecule/codec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class Codec<Encodable, Decoded = Encodable> {
2929
public readonly encode: (encodable: Encodable) => Bytes,
3030
public readonly decode: (
3131
decodable: BytesLike,
32-
config?: { isExtraFieldIgnored?: boolean },
32+
config?: { isExtraFieldIgnored?: boolean }, // This is equivalent to "compatible" in the Rust implementation of Molecule.
3333
) => Decoded,
3434
public readonly byteLength?: number, // if provided, treat codec as fixed length
3535
) {}

0 commit comments

Comments
 (0)