Skip to content

Commit dd8e73c

Browse files
authored
Fix typo: seriaize -> serialize (#6160)
1 parent 1c4c2a6 commit dd8e73c

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

jscomp/core/lam_pass_lets_dce.ml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,5 @@ let apply_lets occ lambda =
259259

260260
let simplify_lets (lam : Lam.t) : Lam.t =
261261
let occ = Lam_pass_count.collect_occurs lam in
262-
#ifndef RELEASE
263-
Ext_log.dwarn ~__POS__ "@[%a@]@." Lam_pass_count.pp_occ_tbl occ ;
264-
#endif
262+
(* Ext_log.dwarn ~__POS__ "@[%a@]@." Lam_pass_count.pp_occ_tbl occ ; *)
265263
apply_lets occ lam

jscomp/core/lam_print.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ let lambda ppf v =
435435
lambda ppf lam;
436436
fprintf ppf "; lambda-failure" *)
437437

438-
let seriaize (filename : string) (lam : Lam.t) : unit =
438+
let serialize (filename : string) (lam : Lam.t) : unit =
439439
let ou = open_out filename in
440440
let old = Format.get_margin () in
441441
let () = Format.set_margin 10000 in

jscomp/core/lam_print.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ val lambda : Format.formatter -> Lam.t -> unit
2626

2727
val primitive : Format.formatter -> Lam_primitive.t -> unit
2828

29-
val seriaize : string -> Lam.t -> unit
29+
val serialize : string -> Lam.t -> unit
3030

3131
val lambda_to_string : Lam.t -> string
3232

jscomp/core/lam_stats_export.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ let get_dependent_module_effect (maybe_pure : string option)
121121
[lambda_exports] is
122122
lambda expression to be exported
123123
for the js backend, we compile to js
124-
for the inliner, we try to seriaize it --
124+
for the inliner, we try to serialize it --
125125
relies on other optimizations to make this happen
126126
{[
127127
exports.Make = function () {.....}

jscomp/core/lam_util.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ let dump ext lam =
223223
begin
224224
incr log_counter;
225225
Ext_log.dwarn ~__POS__ "\n@[[TIME:]%s: %f@]@." ext (Sys.time () *. 1000.);
226-
Lam_print.seriaize
226+
Lam_print.serialize
227227
(Ext_filename.new_extension
228228
!Location.input_name
229229
(Printf.sprintf ".%02d%s.lam" !log_counter ext)

0 commit comments

Comments
 (0)