File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -139,11 +139,11 @@ struct
139
139
140
140
let compute_tag acc =
141
141
let buf = Buffer. create 16 in
142
- let rec p_acc b a = match a with
142
+ let rec p_acc b = function
143
143
Acc_data_string (p , s )
144
- | Acc_string_literal (p , s ) -> p_acc b a ; Buffer. add_string b s
144
+ | Acc_string_literal (p , s ) -> p_acc b p ; Buffer. add_string b s
145
145
| Acc_char_literal (p, c)
146
- | Acc_data_char (p , c ) -> p_acc b a ; Buffer. add_char b c
146
+ | Acc_data_char (p , c ) -> p_acc b p ; Buffer. add_char b c
147
147
| End_of_acc -> ()
148
148
| _ -> raise (Invalid_argument " compute_tag: Unsupported print box tag foramt" )
149
149
in p_acc buf acc;
@@ -188,7 +188,7 @@ struct
188
188
| Acc_data_char (p , c ) -> print_acc o p; Args. print_char o c
189
189
| Acc_delay (p , f ) -> print_acc o p; ignore (f o);
190
190
| Acc_flush p -> print_acc o p; Args. print_flush o
191
- | Acc_invalid_arg (p , msg ) -> print_acc o p; raise ( Invalid_argument msg) ;
191
+ | Acc_invalid_arg (p , msg ) -> print_acc o p; invalid_arg msg;
192
192
| End_of_acc -> ()
193
193
194
194
let fprintf o (Format (fmt , _ )) =
You can’t perform that action at this time.
0 commit comments