Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Grammatical fixes to memento
  • Loading branch information
iluwatar committed Jun 22, 2021
commit 2b7cc410b01605760bd556fb6ca4042e98fa1f7c
10 changes: 5 additions & 5 deletions memento/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ object can be restored to this state later.

## Explanation

Real world example
Real-world example

> We are working on astrology application where we need to analyze star properties over time. We are
> creating snapshots of star state using Memento pattern.
> We are working on an astrology application where we need to analyze star properties over time. We
> are creating snapshots of star states using the Memento pattern.

In plain words

Expand Down Expand Up @@ -51,7 +51,7 @@ public enum StarType {
```

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

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

## Real world examples
## Known uses

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

Expand Down