diff --git a/README.md b/README.md index 788db13..ab55fed 100644 --- a/README.md +++ b/README.md @@ -63,8 +63,8 @@ let description = { description = readonly(Person.prototype, 'name', description) || description; defineDecoratedProperty(Person.prototype, 'name', description); -function defineDecoratedProperty(target, { initializer, enumerable, configurable, writable }) { - Object.defineProperty(target, { value: initializer(), enumerable, configurable, writable }); +function defineDecoratedProperty(target,name, { initializer, enumerable, configurable, writable }) { + Object.defineProperty(target, name,{ value: initializer(), enumerable, configurable, writable }); } ```