@@ -2,14 +2,14 @@ Introduction
2
2
===============
3
3
4
4
The ``immer::persist `` library persists persistent data structures,
5
- allowing the preservation structural sharing of ``immer `` containers
5
+ allowing the preservation of structural sharing of ``immer `` containers
6
6
when serializing, deserializing or transforming the data.
7
7
8
8
9
- .. warning :: This library is still experimental and it's API may
9
+ .. warning :: This library is still experimental and its API may
10
10
change in the future. The headers can be found in
11
11
``immer/extra/persist/... `` and the ``extra `` subpath will be
12
- removed once it's interface stabilises .
12
+ removed once its interface stabilizes .
13
13
14
14
Dependencies
15
15
------------
@@ -30,7 +30,7 @@ runtime, two distinct containers can be operated on independently but
30
30
internally they share nodes and use memory efficiently in that
31
31
way.
32
32
33
- However when such containers are serialized in a trival form, for
33
+ However when such containers are serialized in a trivial form, for
34
34
example, as JSON lists, this sharing is lost: they become truly
35
35
independent---the same data is stored multiple times on disk, and
36
36
later, when read back into memory, the program has lost the structural
@@ -50,8 +50,8 @@ Consider this scenario where you have multiple
50
50
``immer::vector<std::string> ``, where the various instances are
51
51
derived from one another. Some of these vectors would be completely
52
52
identical, while others would have just a few elements different. This
53
- scenario is not uncommon, for example, when `implement the undo
54
- history of an application by preseriving the previous
53
+ scenario is not uncommon, for example, when `implementing the undo
54
+ history of an application by preserving the previous
55
55
states <https://sinusoid.es/lager/modularity.html#genericity> `_.
56
56
57
57
The goal is to apply a transformation function to these vectors with
@@ -81,9 +81,9 @@ type. For example, we may have a pool that contains all
81
81
``immer::vector<int> `` of our document. You can think of it as a small
82
82
database of ``immer `` containers. When serializing the pool, the
83
83
internal structure of all those ``immer `` containers is written as
84
- whole, preserving the structural sharing between those containers.
84
+ a whole, preserving the structural sharing between those containers.
85
85
86
86
Note that for the most part, the user of the library is not concerned
87
87
with pools, as they are generated automatically from your
88
- data- structures. However, you may become aware of them in the JSON
88
+ data structures. However, you may become aware of them in the JSON
89
89
output or when transforming recursive data structures.
0 commit comments