Update README.md

This commit is contained in:
anod221 2018-08-31 10:48:11 +08:00 committed by GitHub
parent b5ae271a0e
commit f0455c25bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,7 +137,7 @@ Set / get length.
```lua
local buf = ByteArray.init( 1,2,3,4,5,6,7 )
print( buf.length )
print( buf.length ) -- 7
buf.length = 4
for i=1, #buf do print(buf[i]) end -- 1 2 3 4
```