Skip to content

Commit

Permalink
Fix misspellings
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterDA committed Dec 24, 2021
1 parent 54c8132 commit 80d8599
Show file tree
Hide file tree
Showing 15 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion lib/Arg_info.mli
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ val cast_to_baseinfo : t structure ptr -> Base_info.t structure ptr
(** Just cast OCaml Ctypes arg info to base info *)

val add_unref_finaliser : t structure ptr -> t structure ptr
(** Add unref of the C underlying structure whith Gc.finalise. *)
(** Add unref of the C underlying structure with Gc.finalise. *)

val from_baseinfo : Base_info.t structure ptr -> t structure ptr
(** Return a Arg_info.t from a Base_info.t, the underlying C structure
Expand Down
2 changes: 1 addition & 1 deletion lib/Callable_info.mli
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ val cast_to_baseinfo : t structure ptr -> Base_info.t structure ptr
(** Just cast OCaml Ctypes callable info to base info *)

val add_unref_finaliser : t structure ptr -> t structure ptr
(** Add unref of the C underlying structure whith Gc.finalise. *)
(** Add unref of the C underlying structure with Gc.finalise. *)

val from_baseinfo : Base_info.t structure ptr -> t structure ptr
(** Return a Function_info.t from a Base_info.t, the underlying C structure
Expand Down
2 changes: 1 addition & 1 deletion lib/Constant_info.mli
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ val cast_to_baseinfo : t structure ptr -> Base_info.t structure ptr
(** Just cast OCaml Ctypes constant info to base info *)

val add_unref_finaliser : t structure ptr -> t structure ptr
(** Add unref of the C underlying structure whith Gc.finalise. *)
(** Add unref of the C underlying structure with Gc.finalise. *)

val from_baseinfo : Base_info.t structure ptr -> t structure ptr
(** Return a Constant_info.t from a Base_info.t, the underlying C structure
Expand Down
4 changes: 2 additions & 2 deletions lib/Field_info.mli
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type t
Struct_info.get_field,
Union_info.get_field
or Object_info.get_field. A field has a size, type and a struct offset
asssociated and a set of flags, which is currently
associated and a set of flags, which is currently
GI_FIELD_IS_READABLE or GI_FIELD_IS_WRITABLE.*)

val fieldinfo : t structure typ
Expand Down Expand Up @@ -59,7 +59,7 @@ val cast_to_baseinfo : t structure ptr -> Base_info.t structure ptr
(** Just cast OCaml Ctypes field info to base info *)

val add_unref_finaliser : t structure ptr -> t structure ptr
(** Add unref of the C underlying structure whith Gc.finalise. *)
(** Add unref of the C underlying structure with Gc.finalise. *)

val from_baseinfo : Base_info.t structure ptr -> t structure ptr
(** Return a Field_info.t from a Base_info.t, the underlying C structure
Expand Down
6 changes: 3 additions & 3 deletions lib/Function_info.mli
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type t
(** Function_info represents a function, method or constructor. To find out
what kind of entity a Function_info represents, call
Function_info.get_flags.
See also Callable_info for information on how to retreive arguments and
See also Callable_info for information on how to retrieve arguments and
other metadata. *)

val functioninfo : t structure typ
Expand All @@ -46,7 +46,7 @@ val get_vfunc : t structure ptr -> Callable_info.t structure ptr option
Function_info with the flag Wraps_vfunc has a virtual function set. For
other cases, None will be returned.
In order to avoid circular call graph between Function_info and VFunc_info,
this function will return a Callable_info. It is upto the user to use
this function will return a Callable_info. It is up to the user to use
VFunc_info.from_callableinfo in order to have the VFunc_info.*)

(*
Expand All @@ -61,7 +61,7 @@ val cast_to_baseinfo : t structure ptr -> Base_info.t structure ptr
(** Just cast OCaml Ctypes function info to base info *)

val add_unref_finaliser : t structure ptr -> t structure ptr
(** Add unref of the C underlying structure whith Gc.finalise. *)
(** Add unref of the C underlying structure with Gc.finalise. *)

val from_baseinfo : Base_info.t structure ptr -> t structure ptr
(** Return a Function_info.t from a Base_info.t, the underlying C structure
Expand Down
2 changes: 1 addition & 1 deletion lib/Interface_info.mli
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ val cast_to_baseinfo : t structure ptr -> Base_info.t structure ptr
(** Just cast OCaml Ctypes interface info to base info *)

val add_unref_finaliser : t structure ptr -> t structure ptr
(** Add unref of the C underlying structure whith Gc.finalise. *)
(** Add unref of the C underlying structure with Gc.finalise. *)

val from_baseinfo : Base_info.t structure ptr -> t structure ptr
(** Return a Interface_info.t from a Base_info.t, the underlying C structure
Expand Down
2 changes: 1 addition & 1 deletion lib/Property_info.mli
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ val cast_to_baseinfo : t structure ptr -> Base_info.t structure ptr
(** Just cast OCaml Ctypes property info to base info *)

val add_unref_finaliser : t structure ptr -> t structure ptr
(** Add unref of the C underlying structure whith Gc.finalise. *)
(** Add unref of the C underlying structure with Gc.finalise. *)

val from_baseinfo : Base_info.t structure ptr -> t structure ptr
(** Return a Property_info.t from a Base_info.t, the underlying C structure
Expand Down
4 changes: 2 additions & 2 deletions lib/Registered_type_info.mli
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ val get_g_type : t structure ptr -> Repository.gtype option
val get_type_init : t structure ptr -> string option
(** Obtain the type init function for info . The type init function is the
function which will register the GType within the GObject type system.
Usually this is not called by langauge bindings or applications, use
Usually this is not called by language bindings or applications, use
Registered_type_info.get_g_type directly instead. *)

val cast_from_baseinfo : Base_info.t structure ptr -> t structure ptr
Expand All @@ -55,7 +55,7 @@ val cast_to_baseinfo : t structure ptr -> Base_info.t structure ptr
(** Just cast OCaml Ctypes registeredtype info to base info *)

val add_unref_finaliser : t structure ptr -> t structure ptr
(** Add unref of the C underlying structure whith Gc.finalise. *)
(** Add unref of the C underlying structure with Gc.finalise. *)

val from_baseinfo : Base_info.t structure ptr -> t structure ptr
(** Return a Registered_type_info.t from a Base_info.t, the underlying C structure
Expand Down
6 changes: 3 additions & 3 deletions lib/Signal_info.mli
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ open Ctypes
type t
(** Signal_info represents a signal. It's a sub-struct of Callable_info and
contains a set of flags and a class closure.
See Callable_info for information on how to retreive arguments and other
See Callable_info for information on how to retrieve arguments and other
metadata from the signal. *)

val signalinfo : t structure typ
Expand All @@ -41,7 +41,7 @@ val get_class_closure : t structure ptr -> Callable_info.t structure ptr option
is a virtual function on the type that the signal belongs to. If the signal
lacks a closure None will be returned.
In order to avoid circular call graph between Signal_info and VFunc_info,
this function will return a Callable_info. It is upto the user to use
this function will return a Callable_info. It is up to the user to use
GIVSignalInfo.from_callableinfo in order to have the VFunc_info.*)

val cast_from_baseinfo : Base_info.t structure ptr -> t structure ptr
Expand All @@ -51,7 +51,7 @@ val cast_to_baseinfo : t structure ptr -> Base_info.t structure ptr
(** Just cast OCaml Ctypes signal info to base info *)

val add_unref_finaliser : t structure ptr -> t structure ptr
(** Add unref of the C underlying structure whith Gc.finalise. *)
(** Add unref of the C underlying structure with Gc.finalise. *)

val from_baseinfo : Base_info.t structure ptr -> t structure ptr
(** Return a Signal_info.t from a Base_info.t, the underlying C structure
Expand Down
2 changes: 1 addition & 1 deletion lib/Struct_info.mli
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ val find_method :
(** Obtain the type information for method named name .*)

val add_unref_finaliser : t structure ptr -> t structure ptr
(** Add unref of the C underlying structure whith Gc.finalise. *)
(** Add unref of the C underlying structure with Gc.finalise. *)

val from_baseinfo : Base_info.t structure ptr -> t structure ptr
(** Return a Struct_info.t from a Base_info.t, the underlying C structure
Expand Down
6 changes: 3 additions & 3 deletions lib/Type_info.mli
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ val unsafe_get_param_type : t structure ptr -> int -> t structure ptr
* container. For example if the current Type_info.t is an array, a GList, a
* GSList or an Hash, you have to use this in order to get the Type_info.t of
* the data of the container.
* Basicaly it is done with Type_info.get_param_type type_info 0 .
* Basically it is done with Type_info.get_param_type type_info 0 .
* https://github.com/GNOME/pygobject/blob/288bd2957916568666c3d5d27e8c868d67b7e8c9/gi/pygi-argument.c#L526
* https://github.com/ruby-gnome2/ruby-gnome2/blob/ec4160b4f4c5432c6ff8a9e962e7ffeacfd48869/gobject-introspection/ext/gobject-introspection/rb-gi-argument.c#L928
* This function is unsafe meanings that it is your responsability to not use
* This function is unsafe meanings that it is your responsibility to not use
* a number out of bounds.
*)

Expand All @@ -92,7 +92,7 @@ val cast_to_baseinfo : t structure ptr -> Base_info.t structure ptr
(** Just cast OCaml Ctypes typeinfo to base info *)

val add_unref_finaliser : t structure ptr -> t structure ptr
(** Add unref of the C underlying structure whith Gc.finalise. *)
(** Add unref of the C underlying structure with Gc.finalise. *)

val from_baseinfo : Base_info.t structure ptr -> t structure ptr
(** Return a Type_info.t from a Base_info.t, the underlying C structure
Expand Down
4 changes: 2 additions & 2 deletions lib/VFunc_info.mli
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ val get_signal : t structure ptr -> Callable_info.t structure ptr option
(** Obtain the signal for the virtual function if one is set. The signal comes
from the object or interface to which this virtual function belongs.
In order to avoid circular call graph between VFunc_info and Signal_info,
this function will return a Callable_info. It is upto the user to use
this function will return a Callable_info. It is up to the user to use
Signal_info.from_callableinfo in order to have the Signal_info.*)

val get_flags : t structure ptr -> Bindings.VFunc_info.flags list
Expand All @@ -54,7 +54,7 @@ val cast_to_baseinfo : t structure ptr -> Base_info.t structure ptr
(** Just cast OCaml Ctypes vfunc info to base info *)

val add_unref_finaliser : t structure ptr -> t structure ptr
(** Add unref of the C underlying structure whith Gc.finalise. *)
(** Add unref of the C underlying structure with Gc.finalise. *)

val from_baseinfo : Base_info.t structure ptr -> t structure ptr
(** Return a VFunc_info.t from a Base_info.t, the underlying C structure
Expand Down
2 changes: 1 addition & 1 deletion lib/Value_info.mli
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ val cast_to_baseinfo : t structure ptr -> Base_info.t structure ptr
(** Just cast OCaml Ctypes enum info to base info *)

val add_unref_finaliser : t structure ptr -> t structure ptr
(** Add unref of the C underlying structure whith Gc.finalise. *)
(** Add unref of the C underlying structure with Gc.finalise. *)

val from_baseinfo : Base_info.t structure ptr -> t structure ptr
(** Return a Struct_info.t from a Base_info.t, the underlying C structure
Expand Down
2 changes: 1 addition & 1 deletion tests/Test_repository.ml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ let tests =
"Repository require fail" >:: test_require_fail;
(* Disable because there is only one instance of Repository and those
* namespaces depends on the nampespaces loaded previously and can
* interfers with previous test.
* interferes with previous test.
* "Repository get loaded namespaces" >:: test_get_loaded_namespaces;*)
"Repository get c prefix" >:: test_get_c_prefix;
"Repository get version" >:: test_get_version;
Expand Down
2 changes: 1 addition & 1 deletion tests/Test_repository_default.ml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ let tests =
"Repository require fail" >:: test_require_fail;
(* Disable because there is only one instance of Repository and those
* namespaces depends on the nampespaces loaded previously and can
* interfers with previous test.
* interferes with previous test.
* "Repository get loaded namespaces" >:: test_get_loaded_namespaces;*)
"Repository get c prefix" >:: test_get_c_prefix;
"Repository get version" >:: test_get_version;
Expand Down

0 comments on commit 80d8599

Please sign in to comment.