Skip to content

Commit ef3f49a

Browse files
authored
docs: remove pointless recommendation (#973)
1 parent 9ee4f6a commit ef3f49a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/coll.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,7 @@ impl<T> Collection<T> {
402402

403403
/// Gets the number of documents matching `filter`.
404404
///
405-
/// Note that using [`Collection::estimated_document_count`](#method.estimated_document_count)
406-
/// is recommended instead of this method is most cases.
405+
/// Note that this method returns an accurate count.
407406
pub async fn count_documents(
408407
&self,
409408
filter: impl Into<Option<Document>>,
@@ -414,8 +413,7 @@ impl<T> Collection<T> {
414413

415414
/// Gets the number of documents matching `filter` using the provided `ClientSession`.
416415
///
417-
/// Note that using [`Collection::estimated_document_count`](#method.estimated_document_count)
418-
/// is recommended instead of this method is most cases.
416+
/// Note that this method returns an accurate count.
419417
pub async fn count_documents_with_session(
420418
&self,
421419
filter: impl Into<Option<Document>>,

0 commit comments

Comments
 (0)