mirror of
https://github.com/getify/You-Dont-Know-JS.git
synced 2024-10-12 02:28:06 +08:00
Typo Corrected
This commit is contained in:
parent
e96cc1a991
commit
8a3a08be0c
@ -566,7 +566,7 @@ class Point2d {
|
||||
// ..
|
||||
|
||||
constructor(x,y) {
|
||||
if (new.target === Point2) {
|
||||
if (new.target === Point2d) {
|
||||
console.log("Constructing 'Point2d' instance");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user