Skip to content

Commit

Permalink
Correct output prompt, fixes #42128 (#42129)
Browse files Browse the repository at this point in the history
  • Loading branch information
IEvangelist committed Aug 13, 2024
1 parent 925c0a7 commit 76db1a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Write a simple parallel program using Parallel.ForEach
description: In this article, learn how to enable data parallelism in .NET. Write a Parallel.ForEach loop over any IEnumerable or IEnumerable<T> data source.
ms.date: 07/26/2022
ms.date: 08/13/2024
ms.custom: devdivchpfy22
dev_langs:
- "csharp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static void Main()
Console.WriteLine($"Classical foreach loop | Total prime numbers : {primeNumbersFromForeach.Count} | Time Taken : {watch.ElapsedMilliseconds} ms.");
Console.WriteLine($"Parallel.ForEach loop | Total prime numbers : {primeNumbersFromParallelForeach.Count} | Time Taken : {watchForParallel.ElapsedMilliseconds} ms.");

Console.WriteLine("Press any key to exit.");
Console.WriteLine("Press 'Enter' to exit.");
Console.ReadLine();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Namespace ParallelExample
Console.WriteLine($"Classical foreach loop | Total prime numbers : {primeNumbersFromForeach.Count} | Time Taken : {watch.ElapsedMilliseconds} ms.")
Console.WriteLine($"Parallel.ForEach loop | Total prime numbers : {primeNumbersFromParallelForeach.Count} | Time Taken : {watchForParallel.ElapsedMilliseconds} ms.")

Console.WriteLine("Press any key to exit.")
Console.WriteLine("Press 'Enter' to exit.")
Console.ReadLine()
End Sub

Expand Down

0 comments on commit 76db1a6

Please sign in to comment.