Merge pull request #8826 from glondu/4.08-spelling-errors

Fix spelling errors reported by Lintian

(cherry picked from commit c808ce7068f3e31975594bcd5e6a41dceab3a80e)
master
Gabriel Scherer 2019-07-25 14:45:46 +02:00
parent a34c3e3ee5
commit 4c303cc88a
12 changed files with 17 additions and 17 deletions

View File

@ -1767,8 +1767,8 @@ end
phases, we only share exits *)
(* Some specific patterns can lead to switches where several cases
point to the same action, but this action is not an exit (see GPR#1370).
The addition of the index in the action array as context allows to
share them correctly without duplication. *)
The addition of the index in the action array as context allows
sharing them correctly without duplication. *)
module StoreExpForSwitch =
Switch.CtxStore
(struct

View File

@ -3,7 +3,7 @@
This chapter describes the OCaml front-end, which declares the abstract
syntax tree used by the compiler, provides a way to parse, print
and pretty-print OCaml code, and ultimately allows to write abstract
and pretty-print OCaml code, and ultimately allows one to write abstract
syntax tree preprocessors invoked via the {\tt -ppx} flag (see chapters~\ref{c:camlc}
and~\ref{c:nativecomp}).

View File

@ -118,7 +118,7 @@ let inline_by_copying_function_body ~env ~r
&& ((not default_inline) || (not default_specialise)) then
(* When the function inlined function is a stub, the annotation
is reported to the function applications inside the stub.
This allows to report the annotation to the application the
This allows reporting the annotation to the application the
original programmer really intended: the stub is not visible
in the source. *)
set_inline_attribute_on_all_apply body

View File

@ -1739,11 +1739,11 @@ module Analyser =
)
else
(
raise (Failure "Parsetree.Pcty_arrow (parse_label, _, pclass_type), labels differents")
raise (Failure "Parsetree.Pcty_arrow (parse_label, _, pclass_type), different labels")
)
| _ ->
raise (Failure "analyse_class_kind pas de correspondance dans le match")
raise (Failure "analyse_class_kind: match failure")
(** Analyse of a Parsetree.class_type and a Types.class_type to return a class_type_kind.*)
and analyse_class_type_kind env current_class_name last_pos parse_class_type sig_class_type =
@ -1798,7 +1798,7 @@ module Analyser =
([], k)
*)
| _ ->
raise (Failure "analyse_class_type_kind pas de correspondance dans le match")
raise (Failure "analyse_class_type_kind: match failure")
let analyse_signature source_file input_file
(ast : Parsetree.signature) (signat : Types.signature) =

View File

@ -59,8 +59,8 @@ val wrap_abort : 'a event -> (unit -> unit) -> 'a event
val guard : (unit -> 'a event) -> 'a event
(** [guard fn] returns the event that, when synchronized, computes
[fn()] and behaves as the resulting event. This allows to
compute events with side-effects at the time of the synchronization
[fn()] and behaves as the resulting event. This enables
computing events with side-effects at the time of the synchronization
operation. *)
val sync : 'a event -> 'a

View File

@ -13,7 +13,7 @@
(* *)
(**************************************************************************)
(** {!iterator} allows to implement AST inspection using open recursion. A
(** {!iterator} enables AST inspection using open recursion. A
typical mapper would be based on {!default_iterator}, a trivial iterator,
and will fall back on it for handling the syntax it does not modify.

View File

@ -21,7 +21,7 @@
the -ppx rewriters, handling such details as the serialization format,
forwarding of command-line flags, and storing state.
{!mapper} allows to implement AST rewriting using open recursion.
{!mapper} enables AST rewriting using open recursion.
A typical mapper would be based on {!default_mapper}, a deep
identity mapper, and will fall back on it for handling the syntax it
does not modify. For example:

View File

@ -133,7 +133,7 @@ type ('a, 'b) kind =
of OCaml types with element kinds, and are re-exported below for
backward-compatibility reasons.
Using a generalized algebraic datatype (GADT) here allows to write
Using a generalized algebraic datatype (GADT) here allows writing
well-typed polymorphic functions whose return type depend on the
argument type, such as:

View File

@ -52,8 +52,8 @@ val check_suffix : string -> string -> bool
val chop_suffix : string -> string -> string
(** [chop_suffix name suff] removes the suffix [suff] from
the filename [name]. The behavior is undefined if [name] does not
end with the suffix [suff]. It is thus recommended to use
[chop_suffix_opt] instead.
end with the suffix [suff]. [chop_suffix_opt] is thus recommended
instead.
*)
val chop_suffix_opt: suffix:string -> string -> string option

View File

@ -687,7 +687,7 @@ let pp_print_if_newline state () =
{ size = Size.zero; token = Pp_if_newline; length = 0 }
(* Generalized break hint that allows to print strings before/after
(* Generalized break hint that allows printing strings before/after
same-line offset (width) or new-line offset *)
let pp_print_custom_break state ~fits ~breaks =
let before, width, after = fits in

View File

@ -3072,7 +3072,7 @@ Error: Types marked with the immediate attribute must be
non-pointer types like int or bool
|}];;
(*
Implicit unpack allows to omit the signature in (val ...) expressions.
Implicit unpack allows the signature in (val ...) expressions to be omitted.
It also adds (module M : S) and (module M) patterns, relying on
implicit (val ...) for the implementation. Such patterns can only

View File

@ -3,7 +3,7 @@
*)
(*
Implicit unpack allows to omit the signature in (val ...) expressions.
Implicit unpack allows the signature in (val ...) expressions to be omitted.
It also adds (module M : S) and (module M) patterns, relying on
implicit (val ...) for the implementation. Such patterns can only