Skip to content

Commit 4830f95

Browse files
author
Maura Winstanley
committed
syntax fixes
1 parent 65a0db3 commit 4830f95

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

specs/ClearBrowsingData.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ All methods clear the data for the associated profile in which the method is cal
3636
## Win32 C++
3737
```cpp
3838

39-
/// Function to clear the autofill data from the last hour
39+
// Function to clear the autofill data from the last hour
4040
void ClearAutofillData()
4141
{
4242
wwil::com_ptr<ICoreWebView2> coreWebView2;
@@ -49,9 +49,9 @@ void ClearAutofillData()
4949
CHECK_FAILURE(webview7->get_Profile(&profile));
5050
double endTime = (double)std::time(nullptr);
5151
double startTime = endTime - 3600;
52-
/// Get the current time and offset the current time by 3600 seconds to clear the data
53-
/// from the start time (one hour ago), until the end time (present time).
54-
/// This will clear the data for the last hour.
52+
// Get the current time and offset the current time by 3600 seconds to clear the data
53+
// from the start time (one hour ago), until the end time (present time).
54+
// This will clear the data for the last hour.
5555
COREWEBVIEW2_BROWSING_DATA_KINDS dataKinds = (COREWEBVIEW2_BROWSING_DATA_KINDS)
5656
(COREWEBVIEW2_BROWSING_DATA_KINDS_GENERAL_AUTOFILL |
5757
COREWEBVIEW2_BROWSING_DATA_KINDS_PASSWORD_AUTOSAVE);
@@ -213,7 +213,7 @@ interface ICoreWebView2Profile : IUnknown {
213213
/// takes in two additional parameters for the start and end time for which it
214214
/// should clear the data between. The `startTime` and `endTime`
215215
/// parameters correspond to the number of seconds since the UNIX epoch.
216-
/// The `startTime` will be offset by -1.0 and the `endTime will be offset by +1.0
216+
/// The `startTime` will be offset by -1.0 and the `endTime` will be offset by +1.0
217217
/// to ensure the last fractional second is cleared on each respective end.
218218
/// `startTime` is inclusive while `endTime` is exclusive, therefore the data will
219219
/// clear [startTime, endTime).
@@ -235,8 +235,8 @@ interface ICoreWebView2Profile : IUnknown {
235235
/// The caller implements this interface to receive the `ClearBrowsingData` result.
236236
[uuid(27676699-FE17-4E2B-8C1B-267395A04ED5), object, pointer_default(unique)]
237237
interface ICoreWebView2ClearBrowsingDataCompletedHandler : IUnknown {
238+
238239
/// Provide the completion status of the corresponding asynchronous method.
239-
240240
HRESULT Invoke([in] HRESULT errorCode);
241241
}
242242

0 commit comments

Comments
 (0)