docs: specify path must be absolute

This commit is contained in:
Remi Gelinas
2024-07-21 11:36:43 -04:00
parent c6cf13ac89
commit 4f182c5578

View File

@ -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));