src/Pure/term_subst.ML
changeset 43326 47cf4bc789aa
parent 36766 33e4246edf29
child 45395 830c9b9b0d66
--- a/src/Pure/term_subst.ML	Thu Jun 09 17:46:25 2011 +0200
+++ b/src/Pure/term_subst.ML	Thu Jun 09 17:51:49 2011 +0200
@@ -163,7 +163,7 @@
 fun zero_var_inst vars =
   fold (fn v as ((x, i), X) => fn (inst, used) =>
     let
-      val ([x'], used') = Name.variants [if Name.is_bound x then "u" else x] used;
+      val (x', used') = Name.variant (if Name.is_bound x then "u" else x) used;
     in if x = x' andalso i = 0 then (inst, used') else ((v, ((x', 0), X)) :: inst, used') end)
   vars ([], Name.context) |> #1;