Skip to content

Commit

Permalink
fixup(readonly): readonly structs removed to support serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBogomips committed Dec 9, 2024
1 parent 63969ac commit 2d9c5fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Monads/Maybe/Maybe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static Maybe<T> Some<T>(Maybe<T> maybe)
/// <summary>
/// Represents an optional value.
/// </summary>
public readonly struct Maybe<TValue> : IMaybe<TValue>, IEquatable<Maybe<TValue>>, IEnumerable<TValue>
public struct Maybe<TValue> : IMaybe<TValue>, IEquatable<Maybe<TValue>>, IEnumerable<TValue>
{
private readonly TValue? _value = default;
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Monads/Result/Result.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public static async Task<Result<TValue>> Execute<TValue>(Func<Task<TValue>> func
/// Represents the result of an operation that may fail.
/// </summary>
/// <typeparam name="TValue"></typeparam>
public readonly struct Result<TValue> : IResult<TValue>, IEquatable<Result<TValue>>, IEnumerable<TValue>
public struct Result<TValue> : IResult<TValue>, IEquatable<Result<TValue>>, IEnumerable<TValue>
{
internal readonly TValue? Value;
internal readonly Error? Error;
Expand Down

0 comments on commit 2d9c5fd

Please sign in to comment.