summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2024-03-26 01:30:22 -0500
committerzachir <zachir@librem.one>2024-03-26 01:30:22 -0500
commit33086ad23f65377478e02d056cd6f4c778a72064 (patch)
tree04be9d85731147005cae1765b5236ee2aa116ddb
parent9a95ef74694076927d5e9ec8345a56b99c3f0845 (diff)
Add doc comments for printInfoHEADmaster
-rw-r--r--src/main.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig
index f074fde..cfdc4e7 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -259,6 +259,8 @@ fn runServer(server: *std.http.Server) !void {
}
}
+/// printInfo() prints the copyright legal information. Theoretically it
+/// shouldn't fail, but if it does stderr.print() will throw a WriteError.
pub fn printInfo(stderr: std.fs.File.Writer) !void {
try stderr.print("zhttpd version 0.1.0, Copyright (C) 2024 ZachIR\n", .{});
try stderr.print("zhttpd comes with ABSOLUTELY NO WARRANTY. This is ", .{});