| author | |
| committer | |
| log | 45081c1e9cc28757cb563c77553631f7a92b29d8 |
| tree | 9ccb5708c94570fc8edc2e6fd925d60fd0916f96 |
| parent | 218a4d4b30f320797121ad9900d48743da77a1b3 |
| signature |
2 files changed, 2 insertions(+), 2 deletions(-)
doc/langref.html.in+1-1| ... | @@ -165,7 +165,7 @@ const std = @import("std"); | ... | @@ -165,7 +165,7 @@ const std = @import("std"); |
| 165 | 165 | ||
| 166 | pub fn main() !void { | 166 | pub fn main() !void { |
| 167 | // If this program is run without stdout attached, exit with an error. | 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 | // If this program encounters pipe failure when printing to stdout, exit | 169 | // If this program encounters pipe failure when printing to stdout, exit |
| 170 | // with an error. | 170 | // with an error. |
| 171 | try stdout_file.write("Hello, world!\n"); | 171 | try stdout_file.write("Hello, world!\n"); |
example/hello_world/hello.zig+1-1| ... | @@ -2,7 +2,7 @@ const std = @import("std"); | ... | @@ -2,7 +2,7 @@ const std = @import("std"); |
| 2 | 2 | ||
| 3 | pub fn main() !void { | 3 | pub fn main() !void { |
| 4 | // If this program is run without stdout attached, exit with an error. | 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 | // If this program encounters pipe failure when printing to stdout, exit | 6 | // If this program encounters pipe failure when printing to stdout, exit |
| 7 | // with an error. | 7 | // with an error. |
| 8 | try stdout_file.write("Hello, world!\n"); | 8 | try stdout_file.write("Hello, world!\n"); |