Skip to content

Commit c4f3e66

Browse files
authored
[Documentation] Remove the words easily and simply (#1041)
1 parent 8d2f8dc commit c4f3e66

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

source/tutorial/tailable-cursor.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ preceding example to use the Iterator methods directly:
9898
Calling ``$cursor->next()`` after the ``while`` loop naturally ends would
9999
throw an exception, since all results on the cursor have been exhausted.
100100

101-
The purpose of this example is simply to demonstrate the functional equivalence
102-
between ``foreach`` and manual iteration with PHP's :php:`Iterator <iterator>`
103-
API. For normal cursors, there is little reason to manually iterate results
104-
instead of a concise ``foreach`` loop.
101+
The purpose of this example is to demonstrate the functional equivalence between
102+
``foreach`` and manual iteration with PHP's :php:`Iterator <iterator>`API.
103+
For normal cursors, there is little reason to manually iterate results instead
104+
of a concise ``foreach`` loop.
105105

106106
Iterating a Tailable Cursor
107107
---------------------------

source/upgrade.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ problematic:
118118
original BSON type.
119119

120120
- Numerically-indexed PHP arrays would be serialized as BSON documents if there
121-
was a gap in their key sequence. Such gaps were easily caused by unsetting a
122-
key to remove an element and forgetting to numerically reindex the array.
121+
was a gap in their key sequence. Such gaps were caused by unsetting a key to
122+
remove an element and forgetting to numerically reindex the array.
123123

124124
The |php-library|'s :phpclass:`BSONDocument <MongoDB\\Model\\BSONDocument>` and
125125
:phpclass:`BSONArray <MongoDB\\Model\\BSONArray>` classes address these concerns

0 commit comments

Comments
 (0)