Skip to content

Commit

Permalink
fix StructType constructor name in README (typo)
Browse files Browse the repository at this point in the history
the example didn't work as is
  • Loading branch information
dawee authored Aug 1, 2016
1 parent 6141a4a commit 17c1c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ properties may be added to it.
var ref = require('ref')
var StructType = require('ref-struct')

var MyStruct = Struct()
var MyStruct = StructType()
MyStruct.defineProperty('width', ref.types.int)
MyStruct.defineProperty('height', ref.types.int)

Expand Down

0 comments on commit 17c1c7a

Please # to comment.