Skip to content

Commit edbe4ef

Browse files
authored
Fix typo in error message (#5823)
1 parent 79131f5 commit edbe4ef

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

jscomp/core/design.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ They also affect how beta reduction works,
300300
```
301301

302302
It is generated by the backend via an argument
303-
`untuplify_fn` in `transl_funciton`.
303+
`untuplify_fn` in `transl_function`.
304304
Note if we want to take advantage of it in the future we need
305305
translate ` f x` into (when `f` is `fun (a0,a1) -> a0 + a1 `
306306

jscomp/core/js_analyzer.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ let free_variables (stats : idents_stats) =
5454
(fun self exp ->
5555
match exp.expression_desc with
5656
| Fun {env}
57-
(* a optimization to avoid walking into funciton again
57+
(* a optimization to avoid walking into function again
5858
if it's already comuted
5959
*) ->
6060
stats.used_idents <-

jscomp/ml/typecore.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3815,7 +3815,7 @@ let report_error env ppf = function
38153815
fprintf ppf
38163816
"Only variables are allowed as left-hand side of `let rec'"
38173817
| Labels_omitted labels ->
3818-
fprintf ppf "For labeled funciton, labels %s were omitted in the application of this function."
3818+
fprintf ppf "For labeled function, labels %s were omitted in the application of this function."
38193819
(String.concat ", " labels)
38203820
| Empty_record_literal ->
38213821
fprintf ppf "Empty record literal {} should be type annotated or used in a record context."

jscomp/outcome_printer/outcome_printer_ns.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
2424

2525
val out_ident : Format.formatter -> string -> unit
26-
(** This funciton is used to
26+
(** This function is used to
2727
reverse namespace printing to
2828
avoid namespace leaking
2929
*)

jscomp/test/console_log_test.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ external min_int : int -> int -> int = "min" [@@bs.val] [@@bs.scope "Math"]
99
]}
1010
otherwise it has to be expanded as
1111
{[
12-
var min_int = funciton(x,y){
12+
var min_int = function(x,y){
1313
return Math.min(x,y)
1414
}
1515
]}

lib/4.06.1/unstable/js_compiler.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44522,7 +44522,7 @@ let report_error env ppf = function
4452244522
fprintf ppf
4452344523
"Only variables are allowed as left-hand side of `let rec'"
4452444524
| Labels_omitted labels ->
44525-
fprintf ppf "For labeled funciton, labels %s were omitted in the application of this function."
44525+
fprintf ppf "For labeled function, labels %s were omitted in the application of this function."
4452644526
(String.concat ", " labels)
4452744527
| Empty_record_literal ->
4452844528
fprintf ppf "Empty record literal {} should be type annotated or used in a record context."
@@ -48737,7 +48737,7 @@ module Outcome_printer_ns : sig
4873748737
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
4873848738

4873948739
val out_ident : Format.formatter -> string -> unit
48740-
(** This funciton is used to
48740+
(** This function is used to
4874148741
reverse namespace printing to
4874248742
avoid namespace leaking
4874348743
*)
@@ -78216,7 +78216,7 @@ let free_variables (stats : idents_stats) =
7821678216
(fun self exp ->
7821778217
match exp.expression_desc with
7821878218
| Fun {env}
78219-
(* a optimization to avoid walking into funciton again
78219+
(* a optimization to avoid walking into function again
7822078220
if it's already comuted
7822178221
*) ->
7822278222
stats.used_idents <-

lib/4.06.1/unstable/js_playground_compiler.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44522,7 +44522,7 @@ let report_error env ppf = function
4452244522
fprintf ppf
4452344523
"Only variables are allowed as left-hand side of `let rec'"
4452444524
| Labels_omitted labels ->
44525-
fprintf ppf "For labeled funciton, labels %s were omitted in the application of this function."
44525+
fprintf ppf "For labeled function, labels %s were omitted in the application of this function."
4452644526
(String.concat ", " labels)
4452744527
| Empty_record_literal ->
4452844528
fprintf ppf "Empty record literal {} should be type annotated or used in a record context."
@@ -48737,7 +48737,7 @@ module Outcome_printer_ns : sig
4873748737
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
4873848738

4873948739
val out_ident : Format.formatter -> string -> unit
48740-
(** This funciton is used to
48740+
(** This function is used to
4874148741
reverse namespace printing to
4874248742
avoid namespace leaking
4874348743
*)
@@ -78216,7 +78216,7 @@ let free_variables (stats : idents_stats) =
7821678216
(fun self exp ->
7821778217
match exp.expression_desc with
7821878218
| Fun {env}
78219-
(* a optimization to avoid walking into funciton again
78219+
(* a optimization to avoid walking into function again
7822078220
if it's already comuted
7822178221
*) ->
7822278222
stats.used_idents <-

lib/4.06.1/whole_compiler.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99520,7 +99520,7 @@ let report_error env ppf = function
9952099520
fprintf ppf
9952199521
"Only variables are allowed as left-hand side of `let rec'"
9952299522
| Labels_omitted labels ->
99523-
fprintf ppf "For labeled funciton, labels %s were omitted in the application of this function."
99523+
fprintf ppf "For labeled function, labels %s were omitted in the application of this function."
9952499524
(String.concat ", " labels)
9952599525
| Empty_record_literal ->
9952699526
fprintf ppf "Empty record literal {} should be type annotated or used in a record context."
@@ -103735,7 +103735,7 @@ module Outcome_printer_ns : sig
103735103735
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
103736103736

103737103737
val out_ident : Format.formatter -> string -> unit
103738-
(** This funciton is used to
103738+
(** This function is used to
103739103739
reverse namespace printing to
103740103740
avoid namespace leaking
103741103741
*)
@@ -133085,7 +133085,7 @@ let free_variables (stats : idents_stats) =
133085133085
(fun self exp ->
133086133086
match exp.expression_desc with
133087133087
| Fun {env}
133088-
(* a optimization to avoid walking into funciton again
133088+
(* a optimization to avoid walking into function again
133089133089
if it's already comuted
133090133090
*) ->
133091133091
stats.used_idents <-

0 commit comments

Comments
 (0)