From 0f2b7d5a7adb79c776ea58fd0e661c444991d298 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Thu, 2 Dec 2021 02:17:40 -0800 Subject: [PATCH] Module.from- use better param name --- src/util/module.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/module.zig b/src/util/module.zig index ab44eaff3b6e9bdeafebb1cd1dfbcaa33a053728..a98722824174058147371bd3fc3ab14abd2243b7 100644 --- a/src/util/module.zig +++ b/src/util/module.zig @@ -26,12 +26,12 @@ pub const Module = struct { clean_path: string, dep: ?zigmod.Dep, - pub fn from(alloc: *std.mem.Allocator, dep: zigmod.Dep, dir: string, options: *common.CollectOptions) !Module { + pub fn from(alloc: *std.mem.Allocator, dep: zigmod.Dep, modpath: string, options: *common.CollectOptions) !Module { var moddeps = std.ArrayList(Module).init(alloc); defer moddeps.deinit(); for (dep.deps) |*d| { - if (try common.get_module_from_dep(d, dir, options)) |founddep| { + if (try common.get_module_from_dep(d, modpath, options)) |founddep| { try moddeps.append(founddep); } } -- 2.54.0