Csharp: Fix typo in LeapYear qhelp

Corrects "add/substract" to "add/subtract" in the UnsafeYearConstruction.qhelp
file to improve clarity.
This commit is contained in:
Ian Lynagh
2025-09-15 15:44:11 +01:00
parent a773042c5d
commit 5cf052dec1

View File

@@ -12,7 +12,7 @@
<example>
<p>In this example, we are incrementing/decrementing the current date by one year when creating a new <code>System.DateTime</code> object. This may work most of the time, but on any given February 29th, the resulting value will be invalid.</p>
<sample src="UnsafeYearConstructionBad.cs" />
<p>To fix this bug, we add/substract years to the current date by calling <code>AddYears</code> method on it.</p>
<p>To fix this bug, we add/subtract years to the current date by calling <code>AddYears</code> method on it.</p>
<sample src="UnsafeYearConstructionGood.cs" />
</example>
<references>