Description
I admit, this issue report is on the verge of nitpicking, but nevertheless...
The count
argument for the Enumerable.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 repeated count-1
times in the generated sequence; when count
is being 0 the generated sequence is empty.
A more accurate description for the count
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:
dotnet-api-docs/xml/System.Linq/Enumerable.xml
Line 8566 in 739ea29
Link to documentation: https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.repeat?view=netstandard-2.1