Skip to content

Commit 5cf052d

Browse files
committed
Csharp: Fix typo in LeapYear qhelp
Corrects "add/substract" to "add/subtract" in the UnsafeYearConstruction.qhelp file to improve clarity.
1 parent a773042 commit 5cf052d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csharp/ql/src/Likely Bugs/LeapYear/UnsafeYearConstruction.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<example>
1313
<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>
1414
<sample src="UnsafeYearConstructionBad.cs" />
15-
<p>To fix this bug, we add/substract years to the current date by calling <code>AddYears</code> method on it.</p>
15+
<p>To fix this bug, we add/subtract years to the current date by calling <code>AddYears</code> method on it.</p>
1616
<sample src="UnsafeYearConstructionGood.cs" />
1717
</example>
1818
<references>

0 commit comments

Comments
 (0)