Skip to content

Commit 39e0ff6

Browse files
authored
Merge pull request #887 from tim-andes/patch-2
Add/remove commas for readability
2 parents 4e688e0 + 74caf08 commit 39e0ff6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/Design-Patterns.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ print_r($veyron->getMakeAndModel()); // outputs "Bugatti Veyron"
5454
This code uses a factory to create the Automobile object. There are two possible benefits to building your code this
5555
way; the first is that if you need to change, rename, or replace the Automobile class later on you can do so and you
5656
will only have to modify the code in the factory, instead of every place in your project that uses the Automobile class.
57-
The second possible benefit is that if creating the object is a complicated job you can do all of the work in the
58-
factory, instead of repeating it every time you want to create a new instance.
57+
The second possible benefit is that, if creating the object is a complicated job, you can do all of the work in the
58+
factory instead of repeating it every time you want to create a new instance.
5959

6060
Using the factory pattern isn't always necessary (or wise). The example code used here is so simple that a factory
6161
would simply be adding unneeded complexity. However if you are making a fairly large or complex project you may save

0 commit comments

Comments
 (0)