Skip to content

Commit ac5b62c

Browse files
committed
CPP: Update comment in qhelp sample for accuracy and consistency.
1 parent fe315a9 commit ac5b62c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/src/Likely Bugs/Leap Year/UncheckedLeapYearAfterYearModificationGood.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ SYSTEMTIME st;
22
FILETIME ft;
33
GetSystemTime(&st);
44

5-
// Flawed logic will result in invalid date
5+
// Flawed logic may result in invalid date
66
st.wYear++;
77

88
// Check for leap year, and adjust the date accordingly
@@ -12,4 +12,4 @@ st.wDay = st.wMonth == 2 && st.wDay == 29 && !isLeapYear ? 28 : st.wDay;
1212
if (!SystemTimeToFileTime(&st, &ft))
1313
{
1414
// handle error
15-
}
15+
}

0 commit comments

Comments
 (0)