diff options
| author | Opportunity <[email protected]> | 2020-01-17 11:58:19 +0800 |
|---|---|---|
| committer | Opportunity <[email protected]> | 2020-01-17 11:58:19 +0800 |
| commit | 9ec8c57fe8aebcc6212543ce03392d13a865e802 (patch) | |
| tree | 0ff4d36e301c863a02793752433fdd9c70a5df04 /xmake/core/base/bytes.lua | |
| parent | 1e36d6b2290a8ad67c34b5a549dcbf87f99d31f1 (diff) | |
use to display
Diffstat (limited to 'xmake/core/base/bytes.lua')
| -rw-r--r-- | xmake/core/base/bytes.lua | 4 |
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 }) |
