Skip to content

Commit 045be32

Browse files
committed
Fixed confusing error in a note.
1 parent deece9f commit 045be32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/prototype.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ defined on `Foo`. But it will not have access to the property `value` of a
4141
`Foo` instance, since that property gets defined in the [constructor](#constructor)
4242
of `Foo`. But this constructor has to be called explicitly.
4343

44-
> **Note:** Do **not** use `Bar.property = Foo`, since it will not point to
44+
> **Note:** Do **not** use `Bar.prototype = Foo`, since it will not point to
4545
> the prototype of `Foo` but rather to the function object `Foo`. So the
4646
> prototype chain will go over `Function.prototype` and not `Foo.prototype`;
4747
> therefore, `method` will not be on the prototype chain.

0 commit comments

Comments
 (0)