dotnet / dotnet/dotnet-api-docs
System.Linq.Enumerable.Repeat method: Explanation for count argument slightly inaccurate (nitpicking)
- Lingua principale
- C#
- Stelle
- 949
- Fork
- 1.7k
- Merge medio
- 2g 19h
- PR unite (30g)
- 52
Descrizione
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: https://github.com/dotnet/dotnet-api-docs/blob/739ea290c4423665b5f06ca6938b75c8b5b6e11b/xml/System.Linq/Enumerable.xml#L8566
Link to documentation: https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.repeat?view=netstandard-2.1
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Apri xml/System.Linq/Enumerable.xml intorno alla riga 8566 e verifica la descrizione dell'argomento count per Enumerable.Repeat. Aggiornala in modo che indichi correttamente quante volte compare il valore, incluso il caso in cui count è zero. Il lavoro è completato quando la formulazione del parametro corrisponde al comportamento del metodo e la documentazione API generata riflette la correzione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- documentation
- Tipo di issue
- Documentazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 72/100