Skip to content

Commit 0f9f3b9

Browse files
committed
Fixes to builder pattern grammar
1 parent e361223 commit 0f9f3b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

builder/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ process can create different representations.
1616

1717
## Explanation
1818

19-
Real world example
19+
Real-world example
2020

2121
> Imagine a character generator for a role-playing game. The easiest option is to let the computer
2222
> create the character for you. If you want to manually select the character details like
23-
> profession, gender, hair color etc. the character generation becomes a step-by-step process that
23+
> profession, gender, hair color, etc. the character generation becomes a step-by-step process that
2424
> completes when all the selections are ready.
2525
2626
In plain words
@@ -49,7 +49,7 @@ anti-pattern.
4949

5050
**Programmatic Example**
5151

52-
The sane alternative is to use the Builder pattern. First of all we have our hero that we want to
52+
The sane alternative is to use the Builder pattern. First of all, we have our hero that we want to
5353
create:
5454

5555
```java
@@ -134,7 +134,7 @@ Use the Builder pattern when
134134
* The algorithm for creating a complex object should be independent of the parts that make up the object and how they're assembled
135135
* The construction process must allow different representations for the object that's constructed
136136

137-
## Real world examples
137+
## Real-world examples
138138

139139
* [java.lang.StringBuilder](http://docs.oracle.com/javase/8/docs/api/java/lang/StringBuilder.html)
140140
* [java.nio.ByteBuffer](http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html#put-byte-) as well as similar buffers such as FloatBuffer, IntBuffer and so on.

0 commit comments

Comments
 (0)