diff options
author | Hugo Herbelin <Hugo.Herbelin@inria.fr> | 2014-11-13 20:16:16 +0100 |
---|---|---|
committer | Hugo Herbelin <Hugo.Herbelin@inria.fr> | 2014-11-13 21:40:37 +0100 |
commit | a71f4ec540ed75310ac1077d93aacf1d60bf308d (patch) | |
tree | 57652da2832c84d1895cbc13494a595e402ebfa1 /printing | |
parent | 014e5ac92a2338f8820be63618c5b0dd631744de (diff) |
Move conjugate_verb_to_be next to cString.plural.
Diffstat (limited to 'printing')
-rw-r--r-- | printing/prettyp.ml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/printing/prettyp.ml b/printing/prettyp.ml index efdbb0dc4..0d26bbe48 100644 --- a/printing/prettyp.ml +++ b/printing/prettyp.ml @@ -79,16 +79,15 @@ let print_ref reduce ref = (********************************) (** Printing implicit arguments *) -let conjugate_verb_to_be = function [_] -> "is" | _ -> "are" - let pr_impl_name imp = pr_id (name_of_implicit imp) let print_impargs_by_name max = function | [] -> [] | impls -> - [hov 0 (str (String.plural (List.length impls) "Argument") ++ spc() ++ + let n = List.length impls in + [hov 0 (str (String.plural n "Argument") ++ spc() ++ prlist_with_sep pr_comma pr_impl_name impls ++ spc() ++ - str (conjugate_verb_to_be impls) ++ str" implicit" ++ + str (String.conjugate_verb_to_be n) ++ str" implicit" ++ (if max then strbrk " and maximally inserted" else mt()))] let print_one_impargs_list l = |