You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b797df6
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: csharp/ql/src/Likely Bugs/LeapYear/UnsafeYearConstruction.qhelp
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@
12
12
<example>
13
13
<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>
14
14
<samplesrc="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>
0 commit comments