Browse Source

Update Log.hx (#5371)

* Update Log.hx

Updated documentation. add types and remove awkward comment

* Update Log.hx

drop type
Mark Knol 9 năm trước cách đây
mục cha
commit
e9b0a061cf
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      std/haxe/Log.hx

+ 3 - 1
std/haxe/Log.hx

@@ -35,7 +35,9 @@ class Log {
 
 
 		This method can be rebound to a custom function:
 		This method can be rebound to a custom function:
 			var oldTrace = haxe.Log.trace; // store old function
 			var oldTrace = haxe.Log.trace; // store old function
-			haxe.Log.trace = function(v,infos) { // handle trace }
+			haxe.Log.trace = function(v, ?infos) { 
+			  // handle trace 
+			}
 			...
 			...
 			haxe.Log.trace = oldTrace;
 			haxe.Log.trace = oldTrace;