Skip to content

Commit 6d58634

Browse files
committed
Fixed typo
1 parent d4b3b5e commit 6d58634

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/DotNext/IOptionMonad.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
namespace DotNext;
22

33
/// <summary>
4-
/// Represents common interface for all option monads.
4+
/// Represents the common interface for all option monads.
55
/// </summary>
66
/// <typeparam name="T">The type of the value in the container.</typeparam>
77
public interface IOptionMonad<T> : ISupplier<object?>
@@ -20,7 +20,7 @@ public interface IOptionMonad<T> : ISupplier<object?>
2020
/// <summary>
2121
/// If a value is present, returns the value, otherwise return default value.
2222
/// </summary>
23-
/// <value>The value, if present, otherwise default.</value>
23+
/// <value>The value stored in the container, if present, otherwise, default value.</value>
2424
T? ValueOrDefault { get; }
2525

2626
/// <summary>
@@ -38,7 +38,7 @@ public interface IOptionMonad<T> : ISupplier<object?>
3838
T OrInvoke(Func<T> defaultFunc) => HasValue ? ValueOrDefault! : defaultFunc();
3939

4040
/// <summary>
41-
/// Attempts to extract value from container if it is present.
41+
/// Attempts to extract value from the container if it is present.
4242
/// </summary>
4343
/// <param name="value">Extracted value.</param>
4444
/// <returns><see langword="true"/> if value is present; otherwise, <see langword="false"/>.</returns>
@@ -50,7 +50,7 @@ bool TryGet(out T? value)
5050
}
5151

5252
/// <summary>
53-
/// Represents common interface for all option monads.
53+
/// Represents the common interface for all option monads.
5454
/// </summary>
5555
/// <typeparam name="T">The type of the value in the container.</typeparam>
5656
/// <typeparam name="TSelf">The implementing type.</typeparam>

src/DotNext/Optional.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,15 +666,15 @@ private bool Equals(in Optional<T> other)
666666
/// Determines whether this container stores
667667
/// the same value as the specified one.
668668
/// </summary>
669-
/// <param name="other">Other container to compare.</param>
669+
/// <param name="other">The container to compare.</param>
670670
/// <returns><see langword="true"/> if this container stores the same value as <paramref name="other"/>; otherwise, <see langword="false"/>.</returns>
671671
public bool Equals(Optional<T> other) => Equals(in other);
672672

673673
/// <summary>
674674
/// Determines whether this container stores
675675
/// the same value as the specified one.
676676
/// </summary>
677-
/// <param name="other">Other container to compare.</param>
677+
/// <param name="other">The container to compare.</param>
678678
/// <returns><see langword="true"/> if this container stores the same value as <paramref name="other"/>; otherwise, <see langword="false"/>.</returns>
679679
public override bool Equals(object? other) => other switch
680680
{

0 commit comments

Comments
 (0)