From 2b7cc410b01605760bd556fb6ca4042e98fa1f7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilkka=20Sepp=C3=A4l=C3=A4?= Date: Tue, 22 Jun 2021 08:03:51 +0300 Subject: [PATCH] Grammatical fixes to memento --- memento/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/memento/README.md b/memento/README.md index f9c8b95c7..699c4ae50 100644 --- a/memento/README.md +++ b/memento/README.md @@ -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 @@ -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 { @@ -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)