Skip to content

Commit e0d055a

Browse files
committed
typos
1 parent f5dfc0a commit e0d055a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+138
-138
lines changed

CHANGES.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Compiler: fix purity of comparison functions (again) (#2092)
1313
* Compiler: fix inlining (#2107)
1414
* Runtime/wasm: fix Unix.times (#2096)
15-
* Ppx: disable spurious warning for unused "self" in object litteral (#2128)
15+
* Ppx: disable spurious warning for unused "self" in object literal (#2128)
1616
* Ppx: fix labelled arguments for methods (#2126)
1717
* Runtime: runtime with target-env=browser should not rely on "require(..)" (#2129)
1818

@@ -37,7 +37,7 @@
3737
# 6.1.0 (2025-07-01) - Lille
3838

3939
## Features/Changes
40-
* Misc: drop support for OCaml 4.12 and bellow
40+
* Misc: drop support for OCaml 4.12 and below
4141
* Misc: switch to dune.3.19
4242
* Misc: initial support for ocaml 5.4 (#2030, #2058)
4343
* Compiler: support for OCaml 4.14.3+trunk (#1844)
@@ -63,7 +63,7 @@
6363
* Compiler/wasm: faster wat output (#1992)
6464
* Compiler/wasm: use a Wasm text files preprocessor (#1822)
6565
* Compiler/wasm: optimize integer operations (#2032)
66-
* Compiler/wasm: use type analysis to remove some unnecessary uses of JavasScript strict equality (#2040)
66+
* Compiler/wasm: use type analysis to remove some unnecessary uses of JavaScript strict equality (#2040)
6767
* Compiler/wasm: use more precise environment types (#2041)
6868
* Compiler/wasm: optimize calls to statically known function (#2044)
6969
* Runtime: use es6 class (#1840)
@@ -142,12 +142,12 @@
142142
* Runtime: make sure [n / 0L] is not optimized away by DCE
143143
* Runtime: fix Unix.LargeFile.stat/lstat
144144
* Runtime: fix stat/lstat times
145-
* Runtime: fix reading from stdin in an interactive nodejs
145+
* Runtime: fix reading from stdin in an interactive Node.js
146146

147147
# 5.9.1 (02-12-2024) - Lille
148148

149149
## Features/Changes
150-
* Compiler: add mechanism to deprecate runtime promitives
150+
* Compiler: add mechanism to deprecate runtime primitives
151151
* Runtime: re-introduce caml_new_string, marked as deprecated
152152

153153
# 5.9.0 (2024-11-22) - Lille
@@ -209,7 +209,7 @@
209209
# 5.8.0 (2024-04-20) - Lille
210210

211211
## Features/Changes
212-
* Compiler: es6 now generate consise body
212+
* Compiler: es6 now generate concise body
213213
* Compiler: codegen: optimize Offset_ref for negative offsets
214214
* Compiler: codegen: change argument passing of back edges.
215215
* Compiler: codegen: use Array destruction to assign args of back
@@ -267,7 +267,7 @@
267267
# 5.6.0 (2024-01-02) - Lille
268268

269269
## Features/Changes
270-
* Compiler: try to preserve clorures ordering between ml and js
270+
* Compiler: try to preserve closures ordering between ml and js
271271
* Compiler: js-parser accept for await
272272

273273
## Bug fixes
@@ -328,7 +328,7 @@
328328
* Compiler: fix location for parsing errors when last token is a virtual semicolon
329329
* Compiler: fix variable renaming with nested const/let decl with identical names
330330
* Compiler: fix variable renaming inside js method
331-
* Compiler: consise body should allow any expression but object literals
331+
* Compiler: concise body should allow any expression but object literals
332332
* Compiler: preserve [new] without arguments [new C] (vs [new C()]
333333
* Compiler: remove invalid rewriting of js (#1471, #1469)
334334
* Runtime: fix int32 values returned from bigarrays when wrapping Uint32Array objects (#1472)
@@ -342,7 +342,7 @@
342342
* Compiler (js parser): fix parsing of js labels (fix #1440)
343343
* Compiler: fix simplification of js with let and const
344344
* Compiler: reduce memory consumption when parsing js
345-
* Compiler: parsing js can return a list of token, the list was sometime incorrect
345+
* Compiler: parsing js can return a list of token, the list was sometimes incorrect
346346
* Sourcemap: stop producing sourcemaps mappings with negative lines or columns
347347
* Runtime: fix marshalling with sharing and string (use-js-string)
348348

@@ -371,7 +371,7 @@
371371
* Compiler: improve analysis for more direct call (#1397)
372372
* Compiler: change memory representation of OCaml strings to use js ones.
373373
* Toplevel: Enable separate compilation of toplevels
374-
* Runtime: js backtrace recording controled by OCAMLRUNPARAM
374+
* Runtime: js backtrace recording controlled by OCAMLRUNPARAM
375375
* Runtime: support for zstd decompression of marshalled data (ocaml.5.1) (#12006)
376376
* Runtime: stub out custom runtime events symbols for OCaml 5.1 (#1414)
377377

@@ -398,12 +398,12 @@ Runtime: fix caml_read_file_content
398398
* Misc: fix and update benchmarks
399399
* Misc: upgrade CI
400400
* Toplevel: recover more names when generating code during toplevel evaluation
401-
* Runtime: wrapping exception or not is now controled in the runtime.
401+
* Runtime: wrapping exception or not is now controlled in the runtime.
402402

403403
## Bug fixes
404-
* Runime: Gc.finalise_last should not be eliminated
404+
* Runtime: Gc.finalise_last should not be eliminated
405405
* Tyxml: reactive dom needed a fix after #1268 (#1353)
406-
* Toplevel: Make sure the toplevel uses the correct memory representaion for strings
406+
* Toplevel: Make sure the toplevel uses the correct memory representation for strings
407407
* Compiler: fix minifier, missing constraint on try-catch blocks.
408408
* Compiler: Miscompilation of code involving references and exceptions (#1354, #1356)
409409

@@ -432,7 +432,7 @@ Runtime: fix caml_read_file_content
432432
* Runtime: Implement Gc.finalise_last
433433
* Runtime: Implement buffer for in_channels
434434
* Runtime: add support for unix_opendir, unix_readdir, unix_closedir, win_findfirst, win_findnext, win_findclose
435-
* Runtime: Dont use require when target-env is browser
435+
* Runtime: Don't use require when target-env is browser
436436
* Runtime: Implements Parsing.set_trace (#1308)
437437
* Runtime: ocaml string are represented as javascript ones.
438438
* Test: track external used in the stdlib and unix
@@ -493,25 +493,25 @@ Runtime: fix caml_read_file_content
493493
* Compiler: setting tc_depth to 0 remove direct call from the tc optimization.
494494
* Lib: add hidden, onfullscreenchange and onwebkitfullscreenchange to document
495495
* Runtime: fixes for Windows, all tests pass
496-
* Runtime: make all windows drive available on nodejs.
496+
* Runtime: make all windows drive available on Node.js.
497497
* Runtime: add support for Sys.mkdir and Sys.rmdir
498-
* Runtime: make stdin work on nodejs
499-
* Runtime: add support for Unix(stat,lstat,mkdir,rmdir,symlink,readlink,unlink,getuid) on nodejs.
498+
* Runtime: make stdin work on Node.js
499+
* Runtime: add support for Unix(stat,lstat,mkdir,rmdir,symlink,readlink,unlink,getuid) on Node.js.
500500
* Runtime: add caml_raise_with_args
501501

502502
## Bug fixes
503503
* Compiler: fix toplevel generation (#1129, #1130, #1131)
504504
* Compiler: fix predefined exn id with separate compilation
505505
* Compiler: js stubs without 'Provides' should still allow 'Require'
506-
* Runtime: fix handling of uncaugh exceptions
506+
* Runtime: fix handling of uncaught exceptions
507507
* Runtime: fix error handling of Sys.readdir
508508
* Dune: make git version lookup more resilient
509509

510510
# 3.10.0 (2021-08-30) - Lille
511511
## Features/Changes
512512
* Compiler: add support for OCaml 4.13
513513
* Compiler: new tool to check for missing primitives
514-
* Compiler: drop support for OCaml 4.03 and bellow
514+
* Compiler: drop support for OCaml 4.03 and below
515515
* Lib: add offsetX and offsetY to Dom_html.mouseEvent
516516
* Lib: add innerText property for Dom_html
517517
* Runtime: add dummy implementation for many dummy primitives
@@ -597,7 +597,7 @@ Runtime: fix caml_read_file_content
597597
* Compiler: fix vardecl optim (#946)
598598
* Compiler: restore optimization when generating if statements
599599
* Compiler: fix javascript parser in the presence of line directives (#980)
600-
* Runtime: Catch nodejs errors and re-raise them as Sys_error
600+
* Runtime: Catch Node.js errors and re-raise them as Sys_error
601601
* Runtime: fix caml_parse_sign_and_base and unsigned syntax
602602
* Runtime: fix caml_js_wrap_meth_callback_strict (#996)
603603
* Runtime: fix over-application of javascript callback (#996)
@@ -688,14 +688,14 @@ Runtime: fix caml_read_file_content
688688
* Misc: dunify the build of the toplevel
689689
* Misc: support for OCaml 4.08
690690
* Lib: wrap js_of_ocaml-lwt, js_of_ocaml-tyxml, js_of_ocaml-toplevel, js_of_ocaml-compiler
691-
* Runtime: don't use deprecated [new Buffer] on nodejs (#726)
691+
* Runtime: don't use deprecated [new Buffer] on Node.js (#726)
692692

693693
## Bug fixes
694694
* Compiler: fix compilation of empty cma
695695
* Compiler: fix js parser with keyword as ident
696696
* Compiler, Runtime: make --setenv work with Sys.getenv_opt
697697
* Compiler: fix miscompilation of Obj.is_int with a match expression
698-
* Compiler: fix quadratic behaviour in findlib.ml
698+
* Compiler: fix quadratic behavior in findlib.ml
699699
* Compiler: prevent addition with a positively-signed number from being coalesced… (#764)
700700
* Compiler: Fix: static eval of String.get (#770)
701701
* Runtime: make obj_dup work on string/bytes
@@ -870,7 +870,7 @@ Runtime: fix caml_read_file_content
870870
* Lib: Support for Core_kernel and Async_kernel (32bit only).
871871
* Lib: Mutation observer.
872872
* Runtime: bigstring, caml_int32_bits_of_float, ..
873-
* Runtime: better nodejs integration
873+
* Runtime: better Node.js integration
874874

875875
## Misc
876876
* Support for OCaml 4.03
@@ -970,7 +970,7 @@ Runtime: fix caml_read_file_content
970970
* Compiler: generate js files with default permission, was 0o600
971971
(#182) (Daniel Bünzli)
972972
* Syntax: fix typing of method arguments
973-
* Runtime: fix behaviour of Sys.argv (Tomohiro Matsuyama)
973+
* Runtime: fix behavior of Sys.argv (Tomohiro Matsuyama)
974974
* Runtime: fix caml_js_meth_call
975975
* Compiler: fix assert false when deadcode is off
976976
* Compiler: fix compilation of Js.debugger
@@ -1013,7 +1013,7 @@ Runtime: fix caml_read_file_content
10131013
* Compiler: allow to embed directory with -file dir_name=ext1,ext2:dest_path
10141014
* Compiler: can now output embedded files in a different js file
10151015
* Lib: js_of_ocaml.graphics
1016-
* Lib: Js.Unsafe.expr to embed JavasScript expression
1016+
* Lib: Js.Unsafe.expr to embed JavaScript expression
10171017
to be used instead of Js.Unsafe.variable (or eval_string)
10181018
* Lib: Sys_js.js_of_ocaml_version && Sys_js.file_content
10191019
* OCamlbuild plugin: Add the OASIS support, document the API and add the tags
@@ -1022,7 +1022,7 @@ Runtime: fix caml_read_file_content
10221022

10231023
## BugFixes
10241024
* Syntax: Better type constraint (#84)
1025-
* Compiler: caml_failwith primitive was sometime missing (#147)
1025+
* Compiler: caml_failwith primitive was sometimes missing (#147)
10261026
* Compiler: variable names used outside a program were
10271027
not marked as reserved (#146)
10281028
* Lib: fix WebGl interface
@@ -1046,7 +1046,7 @@ Runtime: fix caml_read_file_content
10461046
(by Hugo Heuzard)
10471047
* Compiler: improve missing primitives & reserved name detection
10481048
(by Hugo Heuzard)
1049-
* Compiler: static evaluation of constant ("staticeval" optimisation)
1049+
* Compiler: static evaluation of constant ("staticeval" optimization)
10501050
(by Hugo Heuzard)
10511051
* Compiler: share constants (by Hugo Heuzard)
10521052
* Compiler: alias primitives (by Hugo Heuzard)

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
If you encounter a problem when using js_of_ocaml or if you have any questions, please open a [GitHub issue](https://github.com/ocsigen/js_of_ocaml/issues/).
66

77
1. Check first if your issue has already been [reported](https://github.com/ocsigen/js_of_ocaml/issues/).
8-
2. Include the version of ocaml and js_of_ocaml you are using (`ocamlc -version`, `js_of_ocaml --version`).
8+
2. Include the version of OCaml and js_of_ocaml you are using (`ocamlc -version`, `js_of_ocaml --version`).
99
3. Describe the expected and actual behavior.
1010
4. Do not unsubscribe from the issue until it is closed, the maintainers may ask for your feedback.
1111

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Node.js.
1212
- It is easy to install and use as it works with an existing installation of
1313
OCaml, with no need to recompile any library.
1414
- It comes with bindings for a large part of the browser APIs.
15-
- According to our benchmarks, the generated programs runs typically faster than
15+
- According to our benchmarks, the generated programs run typically faster than
1616
with the OCaml bytecode interpreter.
1717
- We believe this compiler will prove much easier to maintain than a retargeted
1818
OCaml compiler, as the bytecode provides a very stable API.
@@ -24,8 +24,8 @@ Js_of_ocaml is composed of multiple packages:
2424
- js_of_ocaml-ppx_deriving_json
2525
- js_of_ocaml-lwt, lwt support.
2626
- js_of_ocaml-tyxml, tyxml support.
27-
- js_of_ocaml-toplevel, lib and tools to build an ocaml toplevel to
28-
javascript.
27+
- js_of_ocaml-toplevel, lib and tools to build an OCaml toplevel to
28+
JavaScript.
2929
- wasm_of_ocaml-compiler, [the Wasm_of_ocaml compiler](README_wasm_of_ocaml.md).
3030

3131
## Requirements
@@ -105,12 +105,12 @@ JavaScript, and floats are not boxed. As a consequence, marshalling, polymorphic
105105
comparison, and hashing functions can yield results different from usual:
106106

107107
- marshalling floats might generate different output. Such output should not be
108-
unmarshalled using the standard ocaml runtime (native or bytecode).
108+
unmarshalled using the standard OCaml runtime (native or bytecode).
109109
- the polymorphic hash function will not give the same results on datastructures
110110
containing floats;
111111
- these functions may be more prone to stack overflow.
112112

113-
| OCaml | javascript |
113+
| OCaml | JavaScript |
114114
| ------------- | ------------- |
115115
| int | number (32bit int) |
116116
| int32 | number (32bit int) |

benchmarks/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ These benchmarks are used to generate charts such as the ones available at https
44

55
## Quick start
66
```
7-
# build/copy additionnal bytecode executable inside `./programs/`
7+
# build/copy additional bytecode executable inside `./programs/`
88
# used when generating the size report.
99
make copy-extra-bc
1010

benchmarks/benchmark-others/lexifi-g2pp/optimization.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module DE:
3939
(** Implementation based on Differential Evolution - A Simple and Efficient Heuristic for Global Optimization over Continuous Spaces,
4040
Rainer Storn and Kenneth Price.
4141
Implemented srategies is a mixture of DE/rand/1/bin and DE/best/1/bin. The mutatant is lambda *. DE/rand/1/bin +. (1. -. lambda) *. DE/best/1/bin
42-
where lambda is randomly choosen for each generation.
42+
where lambda is randomly chosen for each generation.
4343
*)
4444
sig
4545
type t
@@ -62,7 +62,7 @@ type 'a calibration_result =
6262
cr_calibrated_prices: float array;
6363
}
6464
(** General calibration result. It contains the model parameters of type ['a]
65-
and some optional additional informations:
65+
and some optional additional information:
6666
6767
- [cr_parameters]. The optimal model parameter set
6868

compiler/lib/base64.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ let none = -1
5353
let make_alphabet alphabet =
5454
if String.length alphabet <> 64 then invalid_arg "Length of alphabet must be 64";
5555
if String.contains alphabet '='
56-
then invalid_arg "Alphabet can not contain padding character";
56+
then invalid_arg "Alphabet cannot contain padding character";
5757
let emap = Array.init (String.length alphabet) ~f:(fun i -> Char.code alphabet.[i]) in
5858
let dmap = Array.make 256 none in
5959
String.iteri ~f:(fun idx chr -> dmap.(Char.code chr) <- idx) alphabet;
@@ -185,9 +185,9 @@ let decode_sub ?(pad = true) { dmap; _ } ?(off = 0) ?len input =
185185
with Out_of_bounds -> padding
186186
in
187187
let set_be_uint16 t off v =
188-
(* can not write 2 bytes. *)
188+
(* cannot write 2 bytes. *)
189189
if off < 0 || off + 1 > Bytes.length t
190-
then () (* can not write 1 byte but can write 1 byte *)
190+
then () (* cannot write 1 byte but can write 1 byte *)
191191
else if off < 0 || off + 2 > Bytes.length t
192192
then unsafe_set_uint8 t off (v lsr 8) (* can write 2 bytes. *)
193193
else unsafe_set_be_uint16 t off v

compiler/lib/builtins.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ let register ~name ~content ~fragments =
4242
if String.Hashtbl.mem tbl name
4343
then
4444
failwith
45-
(Printf.sprintf "The builtin runtime file %S was registered multiple time" name);
45+
(Printf.sprintf "The builtin runtime file %S was registered multiple times" name);
4646
String.Hashtbl.add tbl name t;
4747
t
4848

compiler/lib/code.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ type constant =
326326
| Int of Targetint.t
327327
| Int32 of Int32.t
328328
| Int64 of Int64.t
329-
| NativeInt of Int32.t (* Native int are 32bit on all known backend *)
329+
| NativeInt of Int32.t (* Native ints are 32bit on all known backends *)
330330
| Tuple of int * constant array * array_or_not
331331

332332
module Constant = struct

compiler/lib/inline.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ type info =
189189
type context =
190190
{ profile : Profile.t (** Aggressive inlining? *)
191191
; p : program
192-
; live_vars : int array (** Occurence count of all variables *)
192+
; live_vars : int array (** Occurrence count of all variables *)
193193
; inline_count : int ref (** Inlining statistics *)
194194
; env : info Var.Map.t (** Functions that are candidate for inlining *)
195195
; in_loop : bool Lazy.t (** Whether the current block is in a loop *)

compiler/lib/js_assign.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ let program' (module Strategy : Strategy) p =
448448
let has_free_var = not (Var.Set.is_empty freevar) in
449449
let unallocated_names = ref Var.Set.empty in
450450
let names = Strategy.allocate_variables state ~count in
451-
(* ignore the choosen name for escaping/free [V _] variables *)
451+
(* ignore the chosen name for escaping/free [V _] variables *)
452452
Var.Set.iter (fun x -> names.(Var.idx x) <- "") freevar;
453453
let ident =
454454
if Config.Flag.stable_var ()

0 commit comments

Comments
 (0)