From 5cf052dec105b1d4b66e526190d8c2e2137414ac Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Mon, 15 Sep 2025 15:44:11 +0100 Subject: [PATCH] Csharp: Fix typo in LeapYear qhelp Corrects "add/substract" to "add/subtract" in the UnsafeYearConstruction.qhelp file to improve clarity. --- csharp/ql/src/Likely Bugs/LeapYear/UnsafeYearConstruction.qhelp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csharp/ql/src/Likely Bugs/LeapYear/UnsafeYearConstruction.qhelp b/csharp/ql/src/Likely Bugs/LeapYear/UnsafeYearConstruction.qhelp index 7483af84a1f5..ae50a05b18ac 100644 --- a/csharp/ql/src/Likely Bugs/LeapYear/UnsafeYearConstruction.qhelp +++ b/csharp/ql/src/Likely Bugs/LeapYear/UnsafeYearConstruction.qhelp @@ -12,7 +12,7 @@

In this example, we are incrementing/decrementing the current date by one year when creating a new System.DateTime object. This may work most of the time, but on any given February 29th, the resulting value will be invalid.

-

To fix this bug, we add/substract years to the current date by calling AddYears method on it.

+

To fix this bug, we add/subtract years to the current date by calling AddYears method on it.