From 9ec8c57fe8aebcc6212543ce03392d13a865e802 Mon Sep 17 00:00:00 2001 From: Opportunity Date: Fri, 17 Jan 2020 11:58:19 +0800 Subject: use to display --- xmake/core/base/bytes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/core/base/bytes.lua b/xmake/core/base/bytes.lua index bdf9b80d6..e2749f64e 100644 --- a/xmake/core/base/bytes.lua +++ b/xmake/core/base/bytes.lua @@ -433,8 +433,8 @@ setmetatable(bytes, { __call = function (_, ...) return bytes.new(...) end, - __tostring = function() - return "" + __todisplay = function() + return todisplay(bytes.new) end }) -- cgit v1.3.1