In Zig, `void` is a function return type for functions that produce no value. A function returning `void` need not return a value; other functions must return one matching their declared type. section 2.1.3
The distinction appears in function declarations: `main` can return `void`, while `fibonacci` returns `i32`. The `!void` return type allows `main` to return no value or report an error. section 1.6.2 section 2.1.3
Listing 1.2 All your codebase still belong to us
const std = @import("std");
pub fn main(init: std.process.Init) !void { #1
const io = init.io;
const stdout = std.Io.File.stdout(); #2
var stdout_buffer: [1024]u8 = undefined;
var stdout_writer = stdout.writer(io, &stdout_buffer); #3
const writer = &stdout_writer.interface; #3
try writer.print("All your codebase still belong to us!\n", .{}); #4
try writer.flush(); #5
}
See `main` declared with `!void` and how its body handles potentially failing output operations. section 1.6.2

