Skip to content

Commit a81cf70

Browse files
authored
Improve documentation for IFindFluent.Limit to note behaviour when passing zero or null (#804)
1 parent 1983d9b commit a81cf70

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/MongoDB.Driver/IFindFluent.cs

+3
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ public interface IFindFluent<TDocument, TProjection> : IAsyncCursorSource<TProje
112112
/// <summary>
113113
/// Limits the number of documents.
114114
/// </summary>
115+
/// <remarks>
116+
/// Limit of zero or null is equivalent to setting no limit.
117+
/// </remarks>
115118
/// <param name="limit">The limit.</param>
116119
/// <returns>The fluent find interface.</returns>
117120
IFindFluent<TDocument, TProjection> Limit(int? limit);

0 commit comments

Comments
 (0)