diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-06-02 11:10:37 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-06-02 11:10:37 -0500 |
| commit | bd6ed779fb1de4f1388b40bf819907291d78d367 (patch) | |
| tree | 654d643a003a13107f1e72da121f9273726f2bdb /src/slskd/Common/CommonExtensions.cs | |
| parent | d116c0edfb56ddc3483eefaeb8cf9dd97573775d (diff) | |
| download | slskd-bd6ed779fb1de4f1388b40bf819907291d78d367.tar.gz | |
fix typos
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() |
