summaryrefslogtreecommitdiff
path: root/xmake/core/sandbox/modules/io.lua
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-07-02 10:12:56 +0800
committerOpportunityLiu <[email protected]>2019-07-02 10:12:56 +0800
commit0261c0e50b59980f08cd8185bf2fb84e7248d104 (patch)
treea7135a6534029e6fd89b4681fe9bf76c950f0775 /xmake/core/sandbox/modules/io.lua
parent35dbc87a2c7e36e8cd3d6e81acd84ff3d5542ba8 (diff)
add some check
Diffstat (limited to 'xmake/core/sandbox/modules/io.lua')
-rw-r--r--xmake/core/sandbox/modules/io.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/sandbox/modules/io.lua b/xmake/core/sandbox/modules/io.lua
index 2f467dd9b..044745cb6 100644
--- a/xmake/core/sandbox/modules/io.lua
+++ b/xmake/core/sandbox/modules/io.lua
@@ -207,11 +207,11 @@ function sandbox_io.print(filepath, ...)
end
-- print string to file
-function sandbox_io.print(filepath, ...)
+function sandbox_io.printf(filepath, ...)
sandbox_io.writefile(filepath, vformat(...))
end
--- cat the given file
+-- cat the given file
function sandbox_io.cat(filepath, linecount, opt)
-- check
@@ -224,7 +224,7 @@ function sandbox_io.cat(filepath, linecount, opt)
io.cat(filepath, linecount, opt)
end
--- tail the given file
+-- tail the given file
function sandbox_io.tail(filepath, linecount, opt)
-- check