diff --git a/readme.md b/readme.md index 06d0f49..b0ed66e 100644 --- a/readme.md +++ b/readme.md @@ -43,7 +43,7 @@ setProperty(object, 'foo.baz', 'x'); console.log(object); //=> {foo: {bar: 'b', baz: 'x'}} -setProperty(object, 'foo.biz.0', 'a'); +setProperty(object, 'foo.biz[0]', 'a'); console.log(object); //=> {foo: {bar: 'b', baz: 'x', biz: ['a']}}