Skip to content

Commit

Permalink
fix: Nit on string interopolation
Browse files Browse the repository at this point in the history
  • Loading branch information
danOIntellitect committed Oct 17, 2023
1 parent 0824d39 commit 2054119
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Chapter22/Listing22.01.UnsychronizedState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static int Main(string[] args)
{
if (args?.Length > 0) { _ = int.TryParse(args[0], out _Total); }

Console.WriteLine($"Increment and decrementing " +
Console.WriteLine("Increment and decrementing " +
$"{_Total} times...");

// Use Task.Factory.StartNew for .NET 4.0
Expand Down
2 changes: 1 addition & 1 deletion src/Chapter22/Listing22.02.UnsychronizedLocalVariables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static int Main(string[] args)
{
int total = int.MaxValue;
if (args?.Length > 0) { _ = int.TryParse(args[0], out total); }
Console.WriteLine($"Increment and decrementing " +
Console.WriteLine("Increment and decrementing " +
$"{total} times...");
int x = 0;
Parallel.For(0, total, i =>
Expand Down
2 changes: 1 addition & 1 deletion src/Chapter22/Listing22.03.SynchronizingWithMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Program
public static int Main(string[] args)
{
if (args?.Length > 0) { _ = int.TryParse(args[0], out _Total); }
Console.WriteLine($"Increment and decrementing " +
Console.WriteLine("Increment and decrementing " +
$"{_Total} times...");

// Use Task.Factory.StartNew for .NET 4.0
Expand Down
2 changes: 1 addition & 1 deletion src/Chapter22/Listing22.04.SynchronizingWithLockKeyword.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class Program
public static int Main(string[] args)
{
if (args?.Length > 0) { _ = int.TryParse(args[0], out _Total); }
Console.WriteLine($"Increment and decrementing " +
Console.WriteLine("Increment and decrementing " +
$"{_Total} times...");

// Use Task.Factory.StartNew for .NET 4.0
Expand Down
2 changes: 1 addition & 1 deletion src/Chapter22/Listing22.05.AsyncMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static async Task<int> Main(string[] args)
#endregion HIGHLIGHT
{
if (args?.Length > 0) { _ = int.TryParse(args[0], out _Total); }
Console.WriteLine($"Increment and decrementing " +
Console.WriteLine("Increment and decrementing " +
$"{_Total} times...");

// Use Task.Factory.StartNew for .NET 4.0
Expand Down

0 comments on commit 2054119

Please sign in to comment.