Skip to content

Commit

Permalink
fix(bufio): fix method of size
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed Oct 7, 2023
1 parent a0189ab commit 8e0aabf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bufio.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ local methods = {}

function methods:size()
local mt = getmetatable(self)
return mt.size
return mt.b:size()
end

function methods:length()
Expand Down

0 comments on commit 8e0aabf

Please sign in to comment.