summaryrefslogtreecommitdiff
path: root/xmake/core/base/bytes.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/bytes.lua')
-rw-r--r--xmake/core/base/bytes.lua4
1 files 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 "<bytes>"
+ __todisplay = function()
+ return todisplay(bytes.new)
end
})