Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit dc85327

Browse files
committed
update readme
1 parent 97086f8 commit dc85327

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ A simple API:
1313

1414
```zig
1515
// encode
16-
try lizpack.encode(YourTypeHere{}, writer, .{})
16+
try lizpack.encode(T{}, writer, .{})
1717
1818
// decode to stack allocated memory
19-
const result: YourTypeHere = try lizpack.decode(YourTypeHere, reader, .{})
19+
const result: T = try lizpack.decode(T, reader, .{})
2020
2121
// decode to heap allocated memory
22-
const result: *YourTypeHere = try lizpack.decodeAlloc(allocator, *YourTypeHere, reader, .{})
22+
const result: *T = try lizpack.decodeAlloc(allocator, *T, reader, .{})
2323
```
2424

2525
Combines with your definition of your message structure:

0 commit comments

Comments
 (0)