From 4f182c5578fc0cc221e1c5e7e17a960802660ec9 Mon Sep 17 00:00:00 2001 From: Remi Gelinas Date: Sun, 21 Jul 2024 11:36:43 -0400 Subject: [PATCH] docs: specify path must be absolute --- src/config/Config.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/config/Config.zig b/src/config/Config.zig index 65a0591da..a9bda5410 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -1687,6 +1687,8 @@ pub fn loadIter( } /// Load configuration from the target config file at `path`. +/// +/// `path` must be resolved and absolute. pub fn loadFile(self: *Config, alloc: Allocator, path: []const u8) !void { assert(std.fs.path.isAbsolute(path));