mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 04:24:33 +01:00
fix review
This commit is contained in:
parent
65c943671e
commit
84c9cee502
1 changed files with 2 additions and 2 deletions
|
|
@ -239,7 +239,7 @@ pub const File = extern struct {
|
|||
self: *const File,
|
||||
comptime info: std.meta.Tag(Info),
|
||||
buffer: []u8,
|
||||
) GetInfoError!struct { usize, @FieldType(Info, @tagName(info)) } {
|
||||
) GetInfoError!*@FieldType(Info, @tagName(info)) {
|
||||
const InfoType = @FieldType(Info, @tagName(info));
|
||||
|
||||
var len = buffer.len;
|
||||
|
|
@ -268,7 +268,7 @@ pub const File = extern struct {
|
|||
|
||||
const attached_str: [*:0]const u16 = switch (info) {
|
||||
.file => data.getFileName(),
|
||||
inline .file_system, .volume_label => data.getVolumeLabel(),
|
||||
.file_system, .volume_label => data.getVolumeLabel(),
|
||||
};
|
||||
const attached_str_len = std.mem.sliceTo(attached_str, 0).len;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue