Skip to content

Commit 83a7e32

Browse files
committed
Merge pull request BonsaiDen#289 from neilbaylorrulez/patch-1
Removing confusing un-needed code + method name change
2 parents f759e51 + f5c1108 commit 83a7e32

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

doc/en/function/constructors.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,12 @@ explicitly return a value.
6565
}
6666
}
6767
}
68-
Robot.prototype = {
69-
someFunction: function() {}
70-
};
7168

7269
new Robot();
7370
Robot();
7471

7572
Both calls to `Robot` return the same thing, a newly created object that
76-
has a property called `method`, which is a
73+
has a property called `getColor`, which is a
7774
[Closure](#function.closures).
7875

7976
It should also be noted that the call `new Robot()` does **not** affect the

0 commit comments

Comments
 (0)