Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 404de016fa033654285e0c21f0e21b6257ef8e10 Mon Sep 17 00:00:00 2001
- From: Gabriel Kerneis <gabriel@kerneis.info>
- Date: Tue, 30 Jul 2013 21:47:29 +0100
- Subject: [PATCH] Fix typos in ocamlbuild error messages
- ---
- ocamlbuild/rule.ml | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
- diff --git a/ocamlbuild/rule.ml b/ocamlbuild/rule.ml
- index d28833d..7cef2fd 100644
- --- a/ocamlbuild/rule.ml
- +++ b/ocamlbuild/rule.ml
- @@ -262,11 +262,11 @@ let rule name ?(tags=[]) ?(prods=[]) ?(deps=[]) ?prod ?dep ?stamp ?(insert = `bo
- List.fold_right begin fun x acc ->
- let r = import x in
- if List.mem r acc then
- - failwith (sprintf "in rule %s, multiple occurences of the resource %s" name x)
- + failwith (sprintf "in rule %s, multiple occurrences of the resource %s" name x)
- else r :: acc
- end xs init
- in
- - if prods = [] && prod = None && stamp = None then raise (Exit_rule_error "Can't make a rule that produce nothing");
- + if prods = [] && prod = None && stamp = None then raise (Exit_rule_error "Can't make a rule that produces nothing");
- let stamp, prods =
- match stamp with
- | None -> None, prods
- --
- 1.7.10.4
Add Comment
Please, Sign In to add comment