Skip to content

Commit f933aba

Browse files
committed
Fixed typo
1 parent 5051994 commit f933aba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/DotNext/Optional.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ public T Value
479479
}
480480

481481
/// <summary>
482-
/// Obtains immutable reference to the value in the container.
482+
/// Gets an immutable reference to the value in the container.
483483
/// </summary>
484484
/// <exception cref="InvalidOperationException">No value is present.</exception>
485485
[UnscopedRef]
@@ -503,7 +503,7 @@ private ref readonly T GetReference<TException>(TException exceptionFactory)
503503
}
504504

505505
/// <summary>
506-
/// Obtains immutable reference to the value in the container.
506+
/// Gets an immutable reference to the value in the container.
507507
/// </summary>
508508
/// <typeparam name="TException">The type of the exception to throw if the optional container has no value.</typeparam>
509509
/// <returns>The immutable reference to the value in the container.</returns>
@@ -514,7 +514,7 @@ public ref readonly T GetReference<TException>()
514514
=> ref GetReference(new Activator<TException>());
515515

516516
/// <summary>
517-
/// Obtains immutable reference to the value in the container.
517+
/// Gets an immutable reference to the value in the container.
518518
/// </summary>
519519
/// <param name="exceptionFactory">The factory used to produce exception if the container has no value.</param>
520520
/// <returns>The immutable reference to the value in the container.</returns>
@@ -524,7 +524,7 @@ public ref readonly T GetReference(Func<Exception> exceptionFactory)
524524
=> ref GetReference<DelegatingSupplier<Exception>>(exceptionFactory);
525525

526526
/// <summary>
527-
/// Obtains immutable reference to the value in the container.
527+
/// Gets an immutable reference to the value in the container.
528528
/// </summary>
529529
/// <param name="exceptionFactory">The factory used to produce exception if the container has no value.</param>
530530
/// <returns>The immutable reference to the value in the container.</returns>
@@ -566,7 +566,7 @@ private Optional<TResult> Convert<TResult, TConverter>(TConverter converter)
566566
/// If a value is present, apply the provided mapping function to it, and if the result is
567567
/// non-null, return an Optional describing the result. Otherwise, returns <see cref="None"/>.
568568
/// </summary>
569-
/// <typeparam name="TResult">The type of the result of the mapping function.</typeparam>
569+
/// <typeparam name="TResult">The type of the mapping function result.</typeparam>
570570
/// <param name="mapper">A mapping function to be applied to the value, if present.</param>
571571
/// <returns>An Optional describing the result of applying a mapping function to the value of this Optional, if a value is present, otherwise <see cref="None"/>.</returns>
572572
public Optional<TResult> Convert<TResult>(Converter<T, TResult> mapper)
@@ -576,7 +576,7 @@ public Optional<TResult> Convert<TResult>(Converter<T, TResult> mapper)
576576
/// If a value is present, apply the provided mapping function to it, and if the result is
577577
/// non-null, return an Optional describing the result. Otherwise, returns <see cref="None"/>.
578578
/// </summary>
579-
/// <typeparam name="TResult">The type of the result of the mapping function.</typeparam>
579+
/// <typeparam name="TResult">The type of the mapping function result.</typeparam>
580580
/// <param name="mapper">A mapping function to be applied to the value, if present.</param>
581581
/// <returns>An Optional describing the result of applying a mapping function to the value of this Optional, if a value is present, otherwise <see cref="None"/>.</returns>
582582
[CLSCompliant(false)]

0 commit comments

Comments
 (0)