Skip to content

Commit 289ff72

Browse files
committed
Be more consistent with variable names
pkgname -> pkg_name
1 parent e49538b commit 289ff72

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/driver/compile.ml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ type compiled = {
2323

2424
let mk_byhash (pkgs : Packages.t Util.StringMap.t) =
2525
Util.StringMap.fold
26-
(fun pkgname pkg acc ->
26+
(fun pkg_name pkg acc ->
2727
List.fold_left
2828
(fun acc (lib : Packages.libty) ->
2929
List.fold_left
3030
(fun acc (m : Packages.modulety) ->
31-
Util.StringMap.add m.m_intf.mif_hash (pkgname, m) acc)
31+
Util.StringMap.add m.m_intf.mif_hash (pkg_name, m) acc)
3232
acc lib.modules)
3333
acc pkg.Packages.libraries)
3434
pkgs Util.StringMap.empty
@@ -121,8 +121,8 @@ let compile ?partial ~output_dir ?linked_dir all =
121121
let pkg_args =
122122
let docs, libs =
123123
Util.StringMap.fold
124-
(fun pkgname (pkg : Packages.t) (docs, libs) ->
125-
let doc = (pkgname, Fpath.(output_dir // pkg.mld_odoc_dir)) in
124+
(fun pkg_name (pkg : Packages.t) (docs, libs) ->
125+
let doc = (pkg_name, Fpath.(output_dir // pkg.mld_odoc_dir)) in
126126
let lib =
127127
List.map
128128
(fun lib ->
@@ -307,7 +307,7 @@ let link : compiled list -> _ =
307307
in
308308
Fiber.List.map link compiled |> List.concat
309309

310-
let index_one ~odocl_dir pkgname pkg =
310+
let index_one ~odocl_dir pkg_name pkg =
311311
let dir = pkg.Packages.pkg_dir in
312312
let output_file = Fpath.(odocl_dir // dir / Odoc.index_filename) in
313313
let libs =
@@ -316,7 +316,7 @@ let index_one ~odocl_dir pkgname pkg =
316316
pkg.Packages.libraries
317317
in
318318
Odoc.compile_index ~json:false ~output_file ~libs
319-
~docs:[ (pkgname, Fpath.(odocl_dir // pkg.mld_odoc_dir)) ]
319+
~docs:[ (pkg_name, Fpath.(odocl_dir // pkg.mld_odoc_dir)) ]
320320
()
321321

322322
let index ~odocl_dir pkgs = Util.StringMap.iter (index_one ~odocl_dir) pkgs

src/driver/odoc.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ let compile_impl ~output_dir ~input_file:file ~includes ~parent_id ~source_id =
7070
let doc_args docs =
7171
let open Cmd in
7272
List.fold_left
73-
(fun acc (pkgname, path) ->
74-
let s = Format.asprintf "%s:%a" pkgname Fpath.pp path in
73+
(fun acc (pkg_name, path) ->
74+
let s = Format.asprintf "%s:%a" pkg_name Fpath.pp path in
7575
v "-P" % s %% acc)
7676
Cmd.empty docs
7777

0 commit comments

Comments
 (0)