Skip to content

Commit 251aa25

Browse files
committed
README++
1 parent 526fe89 commit 251aa25

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ref-array
22
=========
3-
### Create C "array" instances on top of Buffers
3+
### Create C typed "array" instances on top of Buffers
44
[![Build Status](https://secure.travis-ci.org/TooTallNate/ref-array.png)](http://travis-ci.org/TooTallNate/ref-array)
55

66

@@ -34,6 +34,7 @@ var IntArray = ArrayType(int)
3434

3535
// now we can create array instances; the constructor takes the same arguments
3636
// the native JS Array class
37+
3738
var a = new IntArray(5) // by length
3839
a.length // 5
3940
a[0] = 0
@@ -42,7 +43,7 @@ a[2] = -1
4243
a[3] = 2
4344
a[4] = -2
4445

45-
var b = new IntArray(1, 2, 3, 4, 5) // by varargs
46+
var b = new IntArray([1, 2, 3, 4, 5]) // with an existing Array
4647
b.length // 5
4748
b[0] // 1
4849
b[1] // 2

0 commit comments

Comments
 (0)