Skip to content

Commit

Permalink
Minor name, test, and readme fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
permutationlock committed Dec 11, 2023
1 parent 228505e commit 1ea02e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ that emerged from a tiny subset of [ztrait][1]. See [here][3]
for some motivation.

The `zimpl` module is ~20 lines of code and exposes one public
declaration: `Impl`.
declaration:

```Zig
pub fn Impl(comptime Ifc: fn (type) type, comptime T: type) type { ... }
```

If `T` is a single item pointer type, let `U` be the child type of
the pointer, i.e. `T = *U`. Otherwise, we just let `U` be equal to `T`.
If `T` is a single-item pointer type, let `U` be the child type, i.e.
`T = *U`. Otherwise, we set `U` equal to `T`.

### Arguments

Expand Down
2 changes: 1 addition & 1 deletion examples/io.zig
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ pub inline fn skipUntilDelimiterOrEof(
while (true) {
const buffer = try readBuffer(reader_ctx, reader_impl);
if (buffer.len == 0) {
return error.EndOfStream;
return;
}
const len = std.mem.indexOfScalar(
u8,
Expand Down

0 comments on commit 1ea02e7

Please sign in to comment.