From cc8c767686393629716b2c4d2c763090ad55b941 Mon Sep 17 00:00:00 2001 From: Adam Laycock Date: Wed, 4 Jan 2017 13:56:39 -0700 Subject: [PATCH 1/2] Add getArea method where it is necessary. Without this, the `shape.getArea()` call below will cause an error. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index c6978534..b18e181d 100644 --- a/README.md +++ b/README.md @@ -1203,6 +1203,10 @@ class Square extends Shape { setLength(length) { this.length = length; } + + getArea() { + return this.length * this.length; + } } function renderLargeShapes(shapes) { From 95ad6fbd99bb2792840a9d72fd51cbbc8d49e7ba Mon Sep 17 00:00:00 2001 From: Adam Laycock Date: Wed, 4 Jan 2017 14:03:49 -0700 Subject: [PATCH 2/2] Add missing function argument in LSP section --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c6978534..297ee24a 100644 --- a/README.md +++ b/README.md @@ -1221,7 +1221,7 @@ function renderLargeShapes(shapes) { } let shapes = [new Rectangle(), new Rectangle(), new Square()]; -renderLargeShapes(); +renderLargeShapes(shapes); ``` **[⬆ back to top](#table-of-contents)**