Skip to content

Commit 17c1c7a

Browse files
authoredAug 1, 2016
fix StructType constructor name in README (typo)
the example didn't work as is
1 parent 6141a4a commit 17c1c7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ properties may be added to it.
7070
var ref = require('ref')
7171
var StructType = require('ref-struct')
7272

73-
var MyStruct = Struct()
73+
var MyStruct = StructType()
7474
MyStruct.defineProperty('width', ref.types.int)
7575
MyStruct.defineProperty('height', ref.types.int)
7676

0 commit comments

Comments
 (0)
Please sign in to comment.