Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0f9f3b9

Browse files
committed
Fixes to builder pattern grammar
1 parente361223 commit0f9f3b9

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-
Realworld 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-
##Realworld 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)

[8]ページ先頭

©2009-2025 Movatter.jp