浏览代码

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 年之前
父节点
当前提交
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);