2
0
Эх сурвалжийг харах

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 жил өмнө
parent
commit
61ebf4d82d

+ 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 {
 	public static function unify( t1 : Type, t2 : Type) : Bool {
 		return load("unify", 2)(t1, t2);
 		return load("unify", 2)(t1, t2);