From 17c1c7a8ef4ed2da6fc5bf49207547dd107959a2 Mon Sep 17 00:00:00 2001 From: David Corticchiato Date: Mon, 1 Aug 2016 16:32:05 +0200 Subject: [PATCH] fix StructType constructor name in README (typo) the example didn't work as is --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 71fc730..14749c9 100644 --- a/README.md +++ b/README.md @@ -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)