File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ const std = @import("std");
165
165
166
166
pub fn main() !void {
167
167
// If this program is run without stdout attached, exit with an error.
168
- var stdout_file = try std.io.getStdOut();
168
+ const stdout_file = try std.io.getStdOut();
169
169
// If this program encounters pipe failure when printing to stdout, exit
170
170
// with an error.
171
171
try stdout_file.write("Hello, world!\n");
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ const std = @import("std");
2
2
3
3
pub fn main () ! void {
4
4
// If this program is run without stdout attached, exit with an error.
5
- var stdout_file = try std .io .getStdOut ();
5
+ const stdout_file = try std .io .getStdOut ();
6
6
// If this program encounters pipe failure when printing to stdout, exit
7
7
// with an error.
8
8
try stdout_file .write ("Hello, world!\n " );
You can’t perform that action at this time.
0 commit comments