From e7c25159bd65b3f6fa29b85ef4f41b0a1a65f8bc Mon Sep 17 00:00:00 2001 From: Peter Gribanov Date: Mon, 11 Sep 2017 12:19:56 +0300 Subject: [PATCH] fix typo --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 91c801b..cc2d024 100644 --- a/README.md +++ b/README.md @@ -1252,7 +1252,7 @@ foreach ($rectangles as $rectangle) { This solution no longer violates the LSP principle because we can use a subtype. ```php -function printSquareArea(Square $rectangle) +function printSquareArea(Square $square) { // ... } @@ -1264,7 +1264,7 @@ But this is not a best solution, because the square specifies the invariants of **Good:** -The best way is separate the quadrangles and the allocation of a more general subtype for both shape. +The best way is separate the quadrangles and allocation of a more general subtype for both shapes. Despite the apparent similarity of the square and the rectangle, they are different. A square has much in common with a rhombus, and a rectangle with a parallelogram, but they are not subtype.