Skip to content

Commit 7b4e06d

Browse files
authored
docs(cloud_firestore): Fix method name typo in code documentation (#8291)
1 parent 945a53b commit 7b4e06d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/cloud_firestore/cloud_firestore/lib/src/query.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ abstract class Query<T extends Object?> {
9494
/// calls.
9595
///
9696
/// Furthermore, you may not use [orderBy] on the [FieldPath.documentId] [field] when
97-
/// using [startAfterDocument], [startAtDocument], [endAfterDocument],
97+
/// using [startAfterDocument], [startAtDocument], [endBeforeDocument],
9898
/// or [endAtDocument] because the order by clause on the document id
9999
/// is added by these methods implicitly.
100100
Query<T> orderBy(Object field, {bool descending = false});
@@ -432,7 +432,7 @@ class _JsonQuery implements Query<Map<String, dynamic>> {
432432
/// calls.
433433
///
434434
/// Furthermore, you may not use [orderBy] on the [FieldPath.documentId] [field] when
435-
/// using [startAfterDocument], [startAtDocument], [endAfterDocument],
435+
/// using [startAfterDocument], [startAtDocument], [endBeforeDocument],
436436
/// or [endAtDocument] because the order by clause on the document id
437437
/// is added by these methods implicitly.
438438
@override

packages/cloud_firestore/cloud_firestore_platform_interface/lib/src/platform_interface/platform_interface_query.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ abstract class QueryPlatform extends PlatformInterface {
147147
/// After a [FieldPath.documentId] order by call, you cannot add any more [orderBy]
148148
/// calls.
149149
/// Furthermore, you may not use [orderBy] on the [FieldPath.documentId] [field] when
150-
/// using [startAfterDocument], [startAtDocument], [endAfterDocument],
150+
/// using [startAfterDocument], [startAtDocument], [endBeforeDocument],
151151
/// or [endAtDocument] because the order by clause on the document id
152152
/// is added by these methods implicitly.
153153
QueryPlatform orderBy(List<List<dynamic>> orders) {
@@ -165,7 +165,7 @@ abstract class QueryPlatform extends PlatformInterface {
165165
///
166166
/// See also:
167167
///
168-
/// * [endAfterDocument] for a query that ends after a document.
168+
/// * [endBeforeDocument] for a query that ends after a document.
169169
/// * [startAtDocument] for a query that starts at a document.
170170
/// * [endAtDocument] for a query that ends at a document.
171171
QueryPlatform startAfterDocument(List<dynamic> orders, List<dynamic> values) {

0 commit comments

Comments
 (0)