Update README.md

This commit is contained in:
anod221 2018-08-30 22:49:26 +08:00 committed by GitHub
parent d090b325ab
commit 856dcd6661
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,8 +32,9 @@ Index start from 1 to length. If out of range, return -1.
```lua
local buf = ByteArray.init(2,3)
buf[2] = 2
print(buf[1]) -- 2
print(buf[2]) -- 3
print(buf[2]) -- 2
print(buf[3]) -- -1
```