Skip to content

Commit

Permalink
Fixed typos in exception names
Browse files Browse the repository at this point in the history
  • Loading branch information
toton committed Dec 9, 2011
1 parent 162ba82 commit cf05081
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/batLazyList.mli
Expand Up @@ -126,7 +126,7 @@ val unfold: 'b -> ('b -> ('a * 'b) option) -> 'a t
val init : int -> (int -> 'a) -> 'a t
(** Similar to [Array.init], [init n f] returns the lazy list
containing the results of (f 0),(f 1).... (f (n-1)).
Raise [Invalid_arg "LazyList.init"] if n < 0.*)
@raise Invalid_argument ["LazyList.init"] if n < 0.*)

val make : int -> 'a -> 'a t
(** Similar to [String.make], [make n x] returns a
Expand Down
2 changes: 1 addition & 1 deletion src/batList.mli
Expand Up @@ -104,7 +104,7 @@
val init : int -> (int -> 'a) -> 'a list
(** Similar to [Array.init], [init n f] returns the list containing
the results of (f 0),(f 1).... (f (n-1)).
Raise [Invalid_arg "BatList.init"] if n < 0.*)
@raise Invalid_argument ["BatList.init"] if n < 0.*)


(**{6 Iterators}*)
Expand Down
2 changes: 1 addition & 1 deletion src/batPathGen.ml
Expand Up @@ -474,7 +474,7 @@ Return drive letter of the given absolute path.
(drive_letter path_from) = (drive_letter path_to)
]}
@raise Invald_argument if relative path is given
@raise Invalid_argument if relative path is given
*)

end
Expand Down
2 changes: 1 addition & 1 deletion src/batPathGen.mli
Expand Up @@ -475,7 +475,7 @@ Return drive letter of the given absolute path.
(drive_letter path_from) = (drive_letter path_to)
]}
@raise Invald_argument if relative path is given
@raise Invalid_argument if relative path is given
*)

end
Expand Down
4 changes: 2 additions & 2 deletions src/batUnix.mli
Expand Up @@ -75,7 +75,7 @@ val descr_of_input : BatInnerIO.input -> file_descr
Not all inputs have file descriptors. This function works
only for inputs which have been created using module {!Unix}.
@raise Invalid_argument "Unix.descr_of_in_channel" if this input
@raise Invalid_argument ["Unix.descr_of_in_channel"] if this input
channel doesn't have a file descriptor
*)

Expand All @@ -85,7 +85,7 @@ val descr_of_output : unit BatInnerIO.output -> file_descr
Not all inputs have file descriptors. This function works
only for inputs which have been created from module Unix.
@raise Invalid_arg "Unix.descr_of_out_channel" if this input
@raise Invalid_argument ["Unix.descr_of_out_channel"] if this input
channel doesn't have a file descriptor
*)

Expand Down

0 comments on commit cf05081

Please sign in to comment.