Skip to content

Commit d2586b8

Browse files
committed
typos
1 parent 3e1db41 commit d2586b8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Danom.Validation/OptionValidator.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ internal static bool Validate<T, TValue>(
1919
validationResult.Errors.ForEach(e =>
2020
context.AddFailure(
2121
propertyName: context.DisplayName,
22-
errorMessage: ValidationHelpers.ReplaceMissingDisplayName(e.ErrorMessage, quotedDisplayName)));
22+
errorMessage: ReplaceMissingDisplayName(e.ErrorMessage, quotedDisplayName)));
2323
}
2424

2525
return validationResult.IsValid;
2626
}
2727

28-
static string ReplaceMissingDisplayName(string errorMessage, string properDisplayName) =>
28+
private static string ReplaceMissingDisplayName(string errorMessage, string properDisplayName) =>
2929
QuotedDisplayNameRegex().Replace(errorMessage, properDisplayName);
3030

3131
[GeneratedRegex(@"''")]

src/Danom/Option/OptionNullable.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static Option<T> ToOption<T>(this T? x) =>
1616
x is not null && (!Equals(x, default(T))) ? Option<T>.Some(x) : Option<T>.None();
1717

1818
/// <summary>
19-
/// Converts a nullable strct to an option.
19+
/// Converts a nullable strict to an option.
2020
/// </summary>
2121
/// <typeparam name="T"></typeparam>
2222
/// <param name="x"></param>

src/Danom/Option/OptionTask.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ public static async Task<Option<T>> ToOptionAsync<T>(
314314
(await x.WaitOrCancel(cancellationToken)).ToOption();
315315

316316
/// <summary>
317-
/// Converts a nullable strct to an option.
317+
/// Converts a nullable strict to an option.
318318
/// </summary>
319319
/// <typeparam name="T"></typeparam>
320320
/// <param name="x"></param>

0 commit comments

Comments
 (0)