Skip to content

Commit

Permalink
Fix docstring that used example tag instead of exception (#415)
Browse files Browse the repository at this point in the history
* Fix docstring that used `example` tag instead of `exception`

* Change also Benchmark/BenchRandomSubset.cs

Co-authored-by: bchavez <bchavez@bitarmory.com>
  • Loading branch information
DanteDeRuwe and bchavez committed Mar 21, 2022
1 parent 59985ee commit 5c83067
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Benchmark/BenchRandomSubset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void ShuffleTake()
/// Helper to pick random subset of elements out of the list.
/// </summary>
/// <param name="amountToPick">amount of elements to pick of the list.</param>
/// <example cref="ArgumentException">if amountToPick is lower than zero.</example>
/// <exception cref="ArgumentException">if amountToPick is lower than zero.</example>
public IEnumerable<T> PickRandom<T>(IEnumerable<T> items, int amountToPick)
{
if (amountToPick < 0)
Expand Down
2 changes: 1 addition & 1 deletion Source/Bogus/Faker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public T PickRandomParam<T>(params T[] items)
/// Helper to pick random subset of elements out of the list.
/// </summary>
/// <param name="amountToPick">amount of elements to pick of the list.</param>
/// <example cref="ArgumentException">if amountToPick is lower than zero.</example>
/// <exception cref="ArgumentException">if amountToPick is lower than zero.</exception>
public IEnumerable<T> PickRandom<T>(IEnumerable<T> items, int amountToPick)
{
if( amountToPick < 0 )
Expand Down

0 comments on commit 5c83067

Please sign in to comment.