Skip to content

Commit

Permalink
Add missing comptime type
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Jun 24, 2021
1 parent eef2a80 commit 57de488
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example-output/zig.zig
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub const WasiString = extern struct {
}
};

pub fn WasiSlice(comptime T) type {
pub fn WasiSlice(comptime T: type) type {
return extern struct {
ptr: WasiPtr(T),
len: usize,
Expand All @@ -41,7 +41,7 @@ pub fn WasiSlice(comptime T) type {
};
}

pub fn WasiMutSlice(comptime T) type {
pub fn WasiMutSlice(comptime T: type) type {
return extern struct {
ptr: WasiMutPtr(T),
len: usize,
Expand Down
4 changes: 2 additions & 2 deletions src/zig/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub const WasiString = extern struct {
}
};
pub fn WasiSlice(comptime T) type {
pub fn WasiSlice(comptime T: type) type {
return extern struct {
ptr: WasiPtr(T),
len: usize,
Expand All @@ -48,7 +48,7 @@ pub fn WasiSlice(comptime T) type {
};
}
pub fn WasiMutSlice(comptime T) type {
pub fn WasiMutSlice(comptime T: type) type {
return extern struct {
ptr: WasiMutPtr(T),
len: usize,
Expand Down

0 comments on commit 57de488

Please sign in to comment.