Skip to content

Commit f5c1108

Browse files
Removing confusing un-needed code + method name change
1 parent f759e51 commit f5c1108

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)