瀏覽代碼

changed required version for removeTrailingSlash to 3.01

frabbit 11 年之前
父節點
當前提交
eedbe9c103
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      std/haxe/io/Path.hx

+ 2 - 2
std/haxe/io/Path.hx

@@ -208,11 +208,11 @@ class Path {
 		
 		If `path` is null, the result is unspecified.
 	**/
-	@:require(haxe_ver >= 3.1)
+	@:require(haxe_ver >= 3.01)
 	public static function removeTrailingSlash ( path : String ) : String {
 		return switch(path.charCodeAt(path.length - 1)) {
 			case '/'.code | '\\'.code: path.substr(0, -1);
 			case _: path;
 		}
 	}
-}
+}