Skip to content

Commit

Permalink
Typo fix (dotnet#7265)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkulikov authored and Ron Petrusha committed Aug 24, 2018
1 parent 35b18b3 commit 7dc8bd4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static Complex operator +(Complex c1, Complex c2) =>
new Complex(c1.real + c2.real, c1.imaginary + c2.imaginary);

// Override ToString() to display a complex number in the traditional format:
public override string ToString() => $"{this.real} + {this.imaginary}";
public override string ToString() => $"{this.real} + {this.imaginary}i";
```

For more information, see [How to: Use Operator Overloading to Create a Complex Number Class](../../../csharp/programming-guide/statements-expressions-operators/how-to-use-operator-overloading-to-create-a-complex-number-class.md).
Expand Down

0 comments on commit 7dc8bd4

Please sign in to comment.