Skip to content

Fix typo in error message #5823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jscomp/core/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ They also affect how beta reduction works,
```

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

Expand Down
2 changes: 1 addition & 1 deletion jscomp/core/js_analyzer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ let free_variables (stats : idents_stats) =
(fun self exp ->
match exp.expression_desc with
| Fun {env}
(* a optimization to avoid walking into funciton again
(* a optimization to avoid walking into function again
if it's already comuted
*) ->
stats.used_idents <-
Expand Down
2 changes: 1 addition & 1 deletion jscomp/ml/typecore.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3815,7 +3815,7 @@ let report_error env ppf = function
fprintf ppf
"Only variables are allowed as left-hand side of `let rec'"
| Labels_omitted labels ->
fprintf ppf "For labeled funciton, labels %s were omitted in the application of this function."
fprintf ppf "For labeled function, labels %s were omitted in the application of this function."
(String.concat ", " labels)
| Empty_record_literal ->
fprintf ppf "Empty record literal {} should be type annotated or used in a record context."
Expand Down
2 changes: 1 addition & 1 deletion jscomp/outcome_printer/outcome_printer_ns.mli
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)

val out_ident : Format.formatter -> string -> unit
(** This funciton is used to
(** This function is used to
reverse namespace printing to
avoid namespace leaking
*)
2 changes: 1 addition & 1 deletion jscomp/test/console_log_test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ external min_int : int -> int -> int = "min" [@@bs.val] [@@bs.scope "Math"]
]}
otherwise it has to be expanded as
{[
var min_int = funciton(x,y){
var min_int = function(x,y){
return Math.min(x,y)
}
]}
Expand Down
6 changes: 3 additions & 3 deletions lib/4.06.1/unstable/js_compiler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -44522,7 +44522,7 @@ let report_error env ppf = function
fprintf ppf
"Only variables are allowed as left-hand side of `let rec'"
| Labels_omitted labels ->
fprintf ppf "For labeled funciton, labels %s were omitted in the application of this function."
fprintf ppf "For labeled function, labels %s were omitted in the application of this function."
(String.concat ", " labels)
| Empty_record_literal ->
fprintf ppf "Empty record literal {} should be type annotated or used in a record context."
Expand Down Expand Up @@ -48737,7 +48737,7 @@ module Outcome_printer_ns : sig
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)

val out_ident : Format.formatter -> string -> unit
(** This funciton is used to
(** This function is used to
reverse namespace printing to
avoid namespace leaking
*)
Expand Down Expand Up @@ -78216,7 +78216,7 @@ let free_variables (stats : idents_stats) =
(fun self exp ->
match exp.expression_desc with
| Fun {env}
(* a optimization to avoid walking into funciton again
(* a optimization to avoid walking into function again
if it's already comuted
*) ->
stats.used_idents <-
Expand Down
6 changes: 3 additions & 3 deletions lib/4.06.1/unstable/js_playground_compiler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -44522,7 +44522,7 @@ let report_error env ppf = function
fprintf ppf
"Only variables are allowed as left-hand side of `let rec'"
| Labels_omitted labels ->
fprintf ppf "For labeled funciton, labels %s were omitted in the application of this function."
fprintf ppf "For labeled function, labels %s were omitted in the application of this function."
(String.concat ", " labels)
| Empty_record_literal ->
fprintf ppf "Empty record literal {} should be type annotated or used in a record context."
Expand Down Expand Up @@ -48737,7 +48737,7 @@ module Outcome_printer_ns : sig
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)

val out_ident : Format.formatter -> string -> unit
(** This funciton is used to
(** This function is used to
reverse namespace printing to
avoid namespace leaking
*)
Expand Down Expand Up @@ -78216,7 +78216,7 @@ let free_variables (stats : idents_stats) =
(fun self exp ->
match exp.expression_desc with
| Fun {env}
(* a optimization to avoid walking into funciton again
(* a optimization to avoid walking into function again
if it's already comuted
*) ->
stats.used_idents <-
Expand Down
6 changes: 3 additions & 3 deletions lib/4.06.1/whole_compiler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -99520,7 +99520,7 @@ let report_error env ppf = function
fprintf ppf
"Only variables are allowed as left-hand side of `let rec'"
| Labels_omitted labels ->
fprintf ppf "For labeled funciton, labels %s were omitted in the application of this function."
fprintf ppf "For labeled function, labels %s were omitted in the application of this function."
(String.concat ", " labels)
| Empty_record_literal ->
fprintf ppf "Empty record literal {} should be type annotated or used in a record context."
Expand Down Expand Up @@ -103735,7 +103735,7 @@ module Outcome_printer_ns : sig
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)

val out_ident : Format.formatter -> string -> unit
(** This funciton is used to
(** This function is used to
reverse namespace printing to
avoid namespace leaking
*)
Expand Down Expand Up @@ -133085,7 +133085,7 @@ let free_variables (stats : idents_stats) =
(fun self exp ->
match exp.expression_desc with
| Fun {env}
(* a optimization to avoid walking into funciton again
(* a optimization to avoid walking into function again
if it's already comuted
*) ->
stats.used_idents <-
Expand Down