@@ -35,7 +35,7 @@ import {
35
35
/**
36
36
* A light query planner for Firestore.
37
37
*
38
- * This class matches a `FieldIndex`z against a Firestore Query `Target`. It
38
+ * This class matches a `FieldIndex` against a Firestore Query `Target`. It
39
39
* determines whether a given index can be used to serve the specified target.
40
40
*
41
41
* The following table showcases some possible index configurations:
@@ -57,7 +57,7 @@ export class TargetIndexMatcher {
57
57
private readonly collectionId : string ;
58
58
// The single inequality filter of the target (if it exists).
59
59
private readonly inequalityFilter ?: FieldFilter ;
60
- // The list of equality filter of the target.
60
+ // The list of equality filters of the target.
61
61
private readonly equalityFilters : FieldFilter [ ] ;
62
62
// The list of orderBys of the target.
63
63
private readonly orderBys : OrderBy [ ] ;
@@ -127,10 +127,10 @@ export class TargetIndexMatcher {
127
127
128
128
// Process all equalities first. Equalities can appear out of order.
129
129
for ( ; segmentIndex < segments . length ; ++ segmentIndex ) {
130
- // We attempt to greedily match all segments to equality filters. If a a
131
- // filter matches an index segments , we can mark the segment as used.
132
- // Since it is not possible to use the same filed path in both an equality
133
- // and inequality/oderBy cause , we do not have to consider the possibility
130
+ // We attempt to greedily match all segments to equality filters. If a
131
+ // filter matches an index segment , we can mark the segment as used.
132
+ // Since it is not possible to use the same field path in both an equality
133
+ // and inequality/oderBy clause , we do not have to consider the possibility
134
134
// that a matching equality segment should instead be used to map to an
135
135
// inequality filter or orderBy clause.
136
136
if ( ! this . hasMatchingEqualityFilter ( segments [ segmentIndex ] ) ) {
@@ -161,8 +161,8 @@ export class TargetIndexMatcher {
161
161
++ segmentIndex ;
162
162
}
163
163
164
- // All remaining segment need to represent the prefix of the target's
165
- // orderBy
164
+ // All remaining segments need to represent the prefix of the target's
165
+ // orderBy.
166
166
for ( ; segmentIndex < segments . length ; ++ segmentIndex ) {
167
167
const segment = segments [ segmentIndex ] ;
168
168
if (
0 commit comments