diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-06-18 07:50:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-18 07:50:58 -0500 |
| commit | 6d8aa0fcb9cbfe22309139fe9e8b9f86027352e8 (patch) | |
| tree | 5a9fc027f35af593fb5c1168bfbeaeec24acdaf3 /src/slskd/Common/CommonExtensions.cs | |
| parent | 6e77c4f214c9d8a258c1e39c465cc63fc1912850 (diff) | |
| parent | 2c45386bfa4ad1a8a9dd5cf5793ee895ec0aeeaa (diff) | |
| download | slskd-6d8aa0fcb9cbfe22309139fe9e8b9f86027352e8.tar.gz | |
Merge branch 'colors' into feat/config-console-log-colour
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() |
