Skip to content

Commit a903f55

Browse files
authored
Fixed typos (#3596)
1 parent ffe0842 commit a903f55

File tree

17 files changed

+29
-29
lines changed

17 files changed

+29
-29
lines changed

Files.Extensions/TEBProc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1818
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1919
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2020
SOFTWARE.
21-
Readapted from: https://raw.githubusercontent.com/gus33000/RegistryRT/master/pch.h
21+
Re-adapted from: https://raw.githubusercontent.com/gus33000/RegistryRT/master/pch.h
2222
*/
2323

2424
#pragma once

Files.Launcher/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private static void Main(string[] args)
8181
binWatchers.Add(watcher);
8282
}
8383

84-
// Preload context menu for better performace
84+
// Preload context menu for better performance
8585
// We query the context menu for the app's local folder
8686
var preloadPath = ApplicationData.Current.LocalFolder.Path;
8787
using var _ = Win32API.ContextMenu.GetContextMenuForFiles(new string[] { preloadPath }, Shell32.CMF.CMF_NORMAL | Shell32.CMF.CMF_SYNCCASCADEMENU, FilterMenuItems(false));

Files/BaseLayout.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ private void LoadMenuFlyoutItem(IList<MenuFlyoutItemBase> MenuItemsList,
438438
MenuItemsList.Insert(0, menuLayoutSubItem);
439439
}
440440
foreach (var menuFlyoutItem in menuItems
441-
.SkipWhile(x => x.Type == MenuItemType.MFT_SEPARATOR) // Remove leading seperators
441+
.SkipWhile(x => x.Type == MenuItemType.MFT_SEPARATOR) // Remove leading separators
442442
.Reverse()
443443
.SkipWhile(x => x.Type == MenuItemType.MFT_SEPARATOR)) // Remove trailing separators
444444
{

Files/DataModels/SidebarPinnedModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public void SwapItems(INavigationControlItem firstLocationItem, INavigationContr
116116
return;
117117
}
118118

119-
// A backup of the items, because the swapping of items requires removing and inserting them in the corrent position
119+
// A backup of the items, because the swapping of items requires removing and inserting them in the correct position
120120
var sidebarItemsBackup = new List<string>(this.Items);
121121

122122
try
@@ -148,7 +148,7 @@ ex is ArgumentException // Pinned item was invalid
148148
|| (uint)ex.HResult == 0x8007000F // The system cannot find the drive specified
149149
|| (uint)ex.HResult == 0x800700A1) // The specified path is invalid (usually an mtp device was disconnected)
150150
{
151-
Debug.WriteLine($"An error occured while swapping pinned items in the navigation sidebar. {ex.Message}");
151+
Debug.WriteLine($"An error occurred while swapping pinned items in the navigation sidebar. {ex.Message}");
152152
this.Items = sidebarItemsBackup;
153153
this.RemoveStaleSidebarItems();
154154
_ = this.AddAllItemsToSidebar();

Files/Enums/ReturnResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public enum ReturnResult : byte
1414
InProgress = 0,
1515

1616
/// <summary>
17-
/// Informs that operation completed sucessfully
17+
/// Informs that operation completed successfully
1818
/// </summary>
1919
Success = 1,
2020

Files/Extensions/EnumerableExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ internal static IEnumerable<T> CreateEnumerable<T>(this T item) =>
1717
new List<T>() { item };
1818

1919
/// <summary>
20-
/// Executes given lambda parallely on given data set with max degree of parallelism set up
20+
/// Executes given lambda parallelly on given data set with max degree of parallelism set up
2121
/// </summary>
2222
/// <typeparam name="T">The item type</typeparam>
2323
/// <param name="source">Data to process</param>

Files/Extensions/TaskExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ internal static class TaskExtensions
77
#pragma warning disable RCS1175 // Unused this parameter.
88
#pragma warning disable IDE0060 // Remove unused parameter
99
/// <summary>
10-
/// This function is to explicitly state that we know that we're runnign task without awaiting.
11-
/// This makes visual studio to drop warning, but the programmer intent is still clearly stated.
10+
/// This function is to explicitly state that we know that we're running task without awaiting.
11+
/// This makes Visual Studio drop the warning, but the programmer intent is still clearly stated.
1212
/// </summary>
1313
/// <param name="task"></param>
1414
internal static void Forget(this Task task)

Files/Filesystem/Drives.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private async Task RefreshUI()
103103
{
104104
await SyncSideBarItemsUI();
105105
}
106-
catch (Exception) // UI Thread not ready yet, so we defer the pervious operation until it is.
106+
catch (Exception) // UI Thread not ready yet, so we defer the previous operation until it is.
107107
{
108108
System.Diagnostics.Debug.WriteLine($"RefreshUI Exception");
109109
// Defer because UI-thread is not ready yet (and DriveItem requires it?)
@@ -191,7 +191,7 @@ private void DeviceAdded(DeviceWatcher sender, DeviceInformation args)
191191
ex is UnauthorizedAccessException
192192
|| ex is ArgumentException)
193193
{
194-
Logger.Warn($"{ex.GetType()}: Attemting to add the device, {args.Name}, failed at the StorageFolder initialization step. This device will be ignored. Device ID: {args.Id}");
194+
Logger.Warn($"{ex.GetType()}: Attempting to add the device, {args.Name}, failed at the StorageFolder initialization step. This device will be ignored. Device ID: {args.Id}");
195195
return;
196196
}
197197

@@ -272,12 +272,12 @@ private async Task<bool> GetDrivesAsync()
272272
if (res == FileSystemStatusCode.Unauthorized)
273273
{
274274
unauthorizedAccessDetected = true;
275-
Logger.Warn($"{res.ErrorCode}: Attemting to add the device, {drive.Name}, failed at the StorageFolder initialization step. This device will be ignored.");
275+
Logger.Warn($"{res.ErrorCode}: Attempting to add the device, {drive.Name}, failed at the StorageFolder initialization step. This device will be ignored.");
276276
continue;
277277
}
278278
else if (!res)
279279
{
280-
Logger.Warn($"{res.ErrorCode}: Attemting to add the device, {drive.Name}, failed at the StorageFolder initialization step. This device will be ignored.");
280+
Logger.Warn($"{res.ErrorCode}: Attempting to add the device, {drive.Name}, failed at the StorageFolder initialization step. This device will be ignored.");
281281
continue;
282282
}
283283

@@ -407,7 +407,7 @@ public async Task HandleWin32DriveEvent(DeviceEvent eventType, string deviceId)
407407
var rootAdded = await FilesystemTasks.Wrap(() => StorageFolder.GetFolderFromPathAsync(deviceId).AsTask());
408408
if (!rootAdded)
409409
{
410-
Logger.Warn($"{rootAdded.ErrorCode}: Attemting to add the device, {deviceId}, failed at the StorageFolder initialization step. This device will be ignored.");
410+
Logger.Warn($"{rootAdded.ErrorCode}: Attempting to add the device, {deviceId}, failed at the StorageFolder initialization step. This device will be ignored.");
411411
return;
412412
}
413413
lock (drivesList)

Files/Helpers/DispatcherHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void GetResult()
5959
}
6060

6161
/// <summary>
62-
/// Fired once task has complated for notify completion
62+
/// Fired once task has completed for notify completion
6363
/// </summary>
6464
/// <param name="continuation">Continuation action</param>
6565
public async void OnCompleted(Action continuation)

Files/Helpers/ExtensionManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public async Task LoadExtension(AppExtension ext)
184184

185185
// load the extension if the package is OK
186186
if (!ext.Package.Status.VerifyIsOK()
187-
/* This is a good place to do package signature verfication
187+
/* This is a good place to do package signature verification
188188
For the purpose of the sample, we ignore where the package is from
189189
Here is an example of how you would ensure that you only load store-signed extensions:
190190
&& ext.Package.SignatureKind == PackageSignatureKind.Store */

0 commit comments

Comments
 (0)