瀏覽代碼

fixed isEmpty.

Nicolas Cannasse 19 年之前
父節點
當前提交
f6688e4c89
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/List.hx

+ 1 - 1
std/List.hx

@@ -79,7 +79,7 @@ class List<T> {
 	}
 
 	public function isEmpty() : Bool {
-		return (h != null);
+		return (h == null);
 	}
 
 	public function remove( v : T ) : Bool {