diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-08-29 19:00:24 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-08-29 19:00:24 -0400 |
| commit | 686663239af6afd8dea814a9fe6a8885f06d6cb3 (patch) | |
| tree | c272fddf103f5466f3a900b996ecdbfaf7393cd6 /std/io.zig | |
| parent | f1b71053de6c5e71e2e1f73daeaff29280b69350 (diff) | |
| download | zig-686663239af6afd8dea814a9fe6a8885f06d6cb3.tar.gz zig-686663239af6afd8dea814a9fe6a8885f06d6cb3.zip | |
printing info from the ModuleInfo substream of DebugInfo
Diffstat (limited to 'std/io.zig')
| -rw-r--r-- | std/io.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/std/io.zig b/std/io.zig index 369f6eede3..2de52493b1 100644 --- a/std/io.zig +++ b/std/io.zig @@ -34,13 +34,13 @@ pub fn getStdIn() GetStdIoErrs!File { /// Implementation of InStream trait for File pub const FileInStream = struct { - file: *File, + file: File, stream: Stream, pub const Error = @typeOf(File.read).ReturnType.ErrorSet; pub const Stream = InStream(Error); - pub fn init(file: *File) FileInStream { + pub fn init(file: File) FileInStream { return FileInStream{ .file = file, .stream = Stream{ .readFn = readFn }, @@ -55,13 +55,13 @@ pub const FileInStream = struct { /// Implementation of OutStream trait for File pub const FileOutStream = struct { - file: *File, + file: File, stream: Stream, pub const Error = File.WriteError; pub const Stream = OutStream(Error); - pub fn init(file: *File) FileOutStream { + pub fn init(file: File) FileOutStream { return FileOutStream{ .file = file, .stream = Stream{ .writeFn = writeFn }, |
