Skip to content

Commit 1dbd57c

Browse files
ernestochavesBillWagner
authored andcommitted
Actually use the interface in the example (#6077)
Seems like an interface was created but the actual usage example did not use it. Instead, it used the concrete type.
1 parent 47b6445 commit 1dbd57c

File tree

1 file changed

+2
-2
lines changed
  • docs/csharp/language-reference/keywords/codesnippet/CSharp

1 file changed

+2
-2
lines changed

docs/csharp/language-reference/keywords/codesnippet/CSharp/interface_2.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ static void PrintPoint(IPoint p)
6363

6464
static void Main()
6565
{
66-
Point p = new Point(2, 3);
66+
IPoint p = new Point(2, 3);
6767
Console.Write("My Point: ");
6868
PrintPoint(p);
6969
}
7070
}
71-
// Output: My Point: x=2, y=3
71+
// Output: My Point: x=2, y=3

0 commit comments

Comments
 (0)