Skip to content

Commit 2b7cc41

Browse files
committed
Grammatical fixes to memento
1 parent a403c84 commit 2b7cc41

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

memento/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ object can be restored to this state later.
2020

2121
## Explanation
2222

23-
Real world example
23+
Real-world example
2424

25-
> We are working on astrology application where we need to analyze star properties over time. We are
26-
> creating snapshots of star state using Memento pattern.
25+
> We are working on an astrology application where we need to analyze star properties over time. We
26+
> are creating snapshots of star states using the Memento pattern.
2727
2828
In plain words
2929

@@ -51,7 +51,7 @@ public enum StarType {
5151
```
5252

5353
Next, let's jump straight to the essentials. Here's the `Star` class along with the mementos that we
54-
need manipulate. Especially pay attention to `getMemento` and `setMemento` methods.
54+
need to manipulate. Especially pay attention to `getMemento` and `setMemento` methods.
5555

5656
```java
5757
public interface StarMemento {
@@ -176,7 +176,7 @@ Use the Memento pattern when
176176
* A direct interface to obtaining the state would expose implementation details and break the
177177
object's encapsulation
178178

179-
## Real world examples
179+
## Known uses
180180

181181
* [java.util.Date](http://docs.oracle.com/javase/8/docs/api/java/util/Date.html)
182182

0 commit comments

Comments
 (0)