From 8b6eed8039d374820dc53a8620e844e9b6c0afb0 Mon Sep 17 00:00:00 2001 From: biboete Date: Tue, 9 Jun 2026 18:37:56 +0100 Subject: [PATCH 1/3] Fix incorrect comment in Complex.Zero C# example The comment said "imaginary part 1" but the code is `new Complex(0, 0)` (imaginary part 0) and the documented output is `(0, 0)` / `True`. Corrected the comment to "imaginary part 0". --- snippets/csharp/System.Numerics/Complex/Zero/zero1.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/csharp/System.Numerics/Complex/Zero/zero1.cs b/snippets/csharp/System.Numerics/Complex/Zero/zero1.cs index 7e4c6f2abef..803514922c9 100644 --- a/snippets/csharp/System.Numerics/Complex/Zero/zero1.cs +++ b/snippets/csharp/System.Numerics/Complex/Zero/zero1.cs @@ -9,7 +9,7 @@ public static void Main() Complex value = Complex.Zero; Console.WriteLine(value.ToString()); - // Instantiate a complex number with real part 0 and imaginary part 1. + // Instantiate a complex number with real part 0 and imaginary part 0. Complex value1 = new Complex(0, 0); Console.WriteLine(value.Equals(value1)); } @@ -17,4 +17,4 @@ public static void Main() // The example displays the following output: // (0, 0) // True -// \ No newline at end of file +// From 4a12ce0e9e6762572382e3f24e0dd535fba96d47 Mon Sep 17 00:00:00 2001 From: biboete Date: Tue, 9 Jun 2026 18:40:12 +0100 Subject: [PATCH 2/3] Fix incorrect comment in Complex.Zero C# example The comment said "imaginary part 1" but the code is `new Complex(0, 0)` (imaginary part 0) and the documented output is `(0, 0)` / `True`. Corrected the comment to "imaginary part 0". --- snippets/csharp/System.Numerics/Complex/Zero/zero1.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/csharp/System.Numerics/Complex/Zero/zero1.cs b/snippets/csharp/System.Numerics/Complex/Zero/zero1.cs index 803514922c9..8bd2d9e18c4 100644 --- a/snippets/csharp/System.Numerics/Complex/Zero/zero1.cs +++ b/snippets/csharp/System.Numerics/Complex/Zero/zero1.cs @@ -17,4 +17,4 @@ public static void Main() // The example displays the following output: // (0, 0) // True -// +// \ No newline at end of file From 4a653854659fb226858b73dd7f83d6d8ad542f97 Mon Sep 17 00:00:00 2001 From: biboete Date: Wed, 10 Jun 2026 00:37:11 +0100 Subject: [PATCH 3/3] Fix incorrect comment in Complex.Zero VB example Per review feedback, also corrects the mirror-image typo in the VB snippet: the comment said "real part 1" but the code is New Complex(0, 0). --- snippets/visualbasic/System.Numerics/Complex/Zero/zero1.vb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/visualbasic/System.Numerics/Complex/Zero/zero1.vb b/snippets/visualbasic/System.Numerics/Complex/Zero/zero1.vb index fe3e5b01cdc..0b4f4ab0740 100644 --- a/snippets/visualbasic/System.Numerics/Complex/Zero/zero1.vb +++ b/snippets/visualbasic/System.Numerics/Complex/Zero/zero1.vb @@ -9,7 +9,7 @@ Module Example Dim value As Complex = Complex.Zero Console.WriteLine(value.ToString()) - ' Instantiate a complex number with real part 1 and imaginary part 0. + ' Instantiate a complex number with real part 0 and imaginary part 0. Dim value1 As New Complex(0, 0) Console.WriteLine(value.Equals(value1)) End Sub