Skip to content

Commit af59bff

Browse files
author
rstam
committed
CSHARP-661: Fixed documentation comments for FindOne and FindOneAs.
1 parent 6020ee9 commit af59bff

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

MongoDB.Driver/MongoCollection.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ public virtual MongoCursor FindAs(Type documentType, IMongoQuery query)
556556
}
557557

558558
/// <summary>
559-
/// Returns a cursor that can be used to find one document in this collection as a TDocument.
559+
/// Returns one document in this collection as a TDocument.
560560
/// </summary>
561561
/// <typeparam name="TDocument">The type to deserialize the documents as.</typeparam>
562562
/// <returns>A TDocument (or null if not found).</returns>
@@ -566,7 +566,7 @@ public virtual TDocument FindOneAs<TDocument>()
566566
}
567567

568568
/// <summary>
569-
/// Returns a cursor that can be used to find one document in this collection that matches a query as a TDocument.
569+
/// Returns one document in this collection that matches a query as a TDocument.
570570
/// </summary>
571571
/// <typeparam name="TDocument">The type to deserialize the documents as.</typeparam>
572572
/// <param name="query">The query (usually a QueryDocument or constructed using the Query builder).</param>
@@ -577,7 +577,7 @@ public virtual TDocument FindOneAs<TDocument>(IMongoQuery query)
577577
}
578578

579579
/// <summary>
580-
/// Returns a cursor that can be used to find one document in this collection as a TDocument.
580+
/// Returns one document in this collection as a TDocument.
581581
/// </summary>
582582
/// <param name="documentType">The nominal type of the documents.</param>
583583
/// <returns>A document (or null if not found).</returns>
@@ -587,7 +587,7 @@ public virtual object FindOneAs(Type documentType)
587587
}
588588

589589
/// <summary>
590-
/// Returns a cursor that can be used to find one document in this collection that matches a query as a TDocument.
590+
/// Returns one document in this collection that matches a query as a TDocument.
591591
/// </summary>
592592
/// <param name="documentType">The type to deserialize the documents as.</param>
593593
/// <param name="query">The query (usually a QueryDocument or constructed using the Query builder).</param>
@@ -1790,7 +1790,7 @@ public virtual MongoCursor<TDefaultDocument> FindAll()
17901790
}
17911791

17921792
/// <summary>
1793-
/// Returns a cursor that can be used to find one document in this collection as a TDefaultDocument.
1793+
/// Returns one document in this collection as a TDefaultDocument.
17941794
/// </summary>
17951795
/// <returns>A TDefaultDocument (or null if not found).</returns>
17961796
public virtual TDefaultDocument FindOne()
@@ -1799,7 +1799,7 @@ public virtual TDefaultDocument FindOne()
17991799
}
18001800

18011801
/// <summary>
1802-
/// Returns a cursor that can be used to find one document in this collection that matches a query as a TDefaultDocument.
1802+
/// Returns one document in this collection that matches a query as a TDefaultDocument.
18031803
/// </summary>
18041804
/// <param name="query">The query (usually a QueryDocument or constructed using the Query builder).</param>
18051805
/// <returns>A TDefaultDocument (or null if not found).</returns>

0 commit comments

Comments
 (0)