Skip to content

Commit 5245344

Browse files
authored
Update Operators.cs fixed console log params (#10103)
1 parent d578085 commit 5245344

File tree

1 file changed

+2
-2
lines changed
  • snippets/csharp/System/DateTimeOffset/op_Addition

1 file changed

+2
-2
lines changed

snippets/csharp/System/DateTimeOffset/op_Addition/Operators.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,13 @@ private static void ShowSubtraction1()
176176
difference = firstDate - thirdDate;
177177
Console.WriteLine("({0}) - ({1}): {2} days, {3}:{4:d2}",
178178
firstDate.ToString(),
179-
secondDate.ToString(),
179+
thirdDate.ToString(),
180180
difference.Days,
181181
difference.Hours,
182182
difference.Minutes);
183183
// The example produces the following output:
184184
// (3/25/2008 6:00:00 PM -07:00) - (3/25/2008 6:00:00 PM -05:00): 0 days, 2:00
185-
// (3/25/2008 6:00:00 PM -07:00) - (3/25/2008 6:00:00 PM -05:00): 26 days, 9:00
185+
// (3/25/2008 6:00:00 PM -07:00) - (2/28/2008 9:00:00 AM -07:00): 26 days, 9:00
186186
// </Snippet14>
187187
}
188188

0 commit comments

Comments
 (0)