Просмотр исходного кода

Clearer description for Context.unify()

The previous wording didn't make it clear enough that the function actually tries to unify the types. It could be mistaken as just performing a check without side-effects.
Gama11 10 лет назад
Родитель
Сommit
61ebf4d82d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      std/haxe/macro/Context.hx

+ 1 - 1
std/haxe/macro/Context.hx

@@ -378,7 +378,7 @@ class Context {
 	}
 
 	/**
-		Returns true if `t1` and `t2` unify, false otherwise.
+		Tries to unify `t1` and `t2` and returns `true` if successful.
 	**/
 	public static function unify( t1 : Type, t2 : Type) : Bool {
 		return load("unify", 2)(t1, t2);