- Notifications
You must be signed in to change notification settings - Fork1.6k
Open
Description
I admit, this issue report is on the verge of nitpicking, but nevertheless...
Thecount
argument for theEnumerable.Repeat
method currently states:
The number of times to repeat the value in the generated sequence
This is of course incorrect :)
In fact, the value is repeatedcount-1
times in the generated sequence; whencount
is being 0 the generated sequence is empty.
A more accurate description for thecount
argument could perhaps be something like:
The number of times the value occurs in the generated sequence
Github link to the respective line in the documentation source:
<paramname="count">The number of times to repeat the value in the generated sequence.</param> |
Link to documentation:https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.repeat?view=netstandard-2.1