diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-06-02 11:15:57 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-02 11:15:57 -0500 |
| commit | ec31fd53e8cf91adbeae6bb20958e9c8ef85e56c (patch) | |
| tree | 654d643a003a13107f1e72da121f9273726f2bdb /src/slskd/Common/CommonExtensions.cs | |
| parent | 960f03d59523c84a7f1fc256cbfacf541513d18a (diff) | |
| parent | bd6ed779fb1de4f1388b40bf819907291d78d367 (diff) | |
| download | slskd-ec31fd53e8cf91adbeae6bb20958e9c8ef85e56c.tar.gz | |
Merge pull request #1142 from slskd/typos
Fix a bunch of typos throughout
Diffstat (limited to 'src/slskd/Common/CommonExtensions.cs')
| -rw-r--r-- | src/slskd/Common/CommonExtensions.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/slskd/Common/CommonExtensions.cs b/src/slskd/Common/CommonExtensions.cs index 6a472b9b..a68ce2f2 100644 --- a/src/slskd/Common/CommonExtensions.cs +++ b/src/slskd/Common/CommonExtensions.cs @@ -209,7 +209,7 @@ namespace slskd } /// <summary> - /// Replaces the first occurance of <paramref name="phrase"/> in the string with <paramref name="replacement"/>. + /// Replaces the first occurrence of <paramref name="phrase"/> in the string with <paramref name="replacement"/>. /// </summary> /// <param name="str">The string on which to perform the replacement.</param> /// <param name="phrase">The phrase or substring to replace.</param> @@ -307,7 +307,7 @@ namespace slskd /// </summary> /// <typeparam name="T">The type to which to deserialize the string.</typeparam> /// <param name="str">The string to deserialize.</param> - /// <returns>The new object deserialzied from the string.</returns> + /// <returns>The new object deserialized from the string.</returns> public static T FromYaml<T>(this string str) => new DeserializerBuilder() .WithNamingConvention(UnderscoredNamingConvention.Instance) .Build() @@ -401,7 +401,7 @@ namespace slskd } /// <summary> - /// Replaces any occurance of an invalid filename character with the specified <see paramref="replacement"/>. + /// Replaces any occurrence of an invalid filename character with the specified <see paramref="replacement"/>. /// </summary> /// <param name="path">The path to sanitize.</param> /// <param name="replacement">The character with which to replace invalid characters.</param> @@ -451,7 +451,7 @@ namespace slskd /// </summary> /// <typeparam name="T">The type to which to deserialize the string.</typeparam> /// <param name="str">The string to deserialize.</param> - /// <returns>The new object deserialzied from the string.</returns> + /// <returns>The new object deserialized from the string.</returns> public static T FromJson<T>(this string str) => JsonSerializer.Deserialize<T>(str, GetJsonSerializerOptions()); private static JsonSerializerOptions GetJsonSerializerOptions() |
