From 293024d4ffdce45fc6ff2a22093c4b7bd91a4450 Mon Sep 17 00:00:00 2001 From: Anod Chow Date: Fri, 9 Oct 2020 13:16:03 +0800 Subject: [PATCH] update the document of ByteArr.from --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8254a1b..6ff78aa 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,9 @@ ByteArray.BIG_ENDIAN = 1 ``` # constructor -`create( [capacity, [endian]] )` Create an empty byte array. +`create( [capacity[, endian]] )` Create an empty byte array. `init( [param1, param2, ...] )` Create a byte array with initial bytes. Parameters should be a list of number or table. -`load( str )` Create a byte array with lua string object for read data. This byte array is read-only. +`load( str[, endian] )` Create a byte array with lua string object for read data. This byte array is read-only. `return` A ByteArray object.