Permalink
Browse files

Fixed typos in exception names

  • Loading branch information...
1 parent 162ba82 commit cf0508127ebc28527458b90d2e4634817f4fab5b @toton toton committed Dec 9, 2011
Showing with 6 additions and 6 deletions.
  1. +1 −1 src/batLazyList.mli
  2. +1 −1 src/batList.mli
  3. +1 −1 src/batPathGen.ml
  4. +1 −1 src/batPathGen.mli
  5. +2 −2 src/batUnix.mli
View
@@ -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
View
@@ -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}*)
View
@@ -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
View
@@ -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
View
@@ -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
*)
@@ -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
*)

0 comments on commit cf05081

Please sign in to comment.