Skip to content

Commit

Permalink
Small README fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amantinband committed Jan 6, 2024
1 parent c57e75c commit c3eadff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ ErrorOr<int> result = new[] { Error.Validation(), Error.Validation() }.ToErrorOr
## `IsError`

```cs
ErrorOr<int> foo = User.Create();
ErrorOr<int> result = User.Create();

if (result.IsError)
{
Expand All @@ -255,7 +255,7 @@ if (result.IsError)
## `Value`

```cs
ErrorOr<int> foo = User.Create();
ErrorOr<int> result = User.Create();

if (!result.IsError) // the result contains a value
{
Expand All @@ -266,7 +266,7 @@ if (!result.IsError) // the result contains a value
## `Errors`

```cs
ErrorOr<int> foo = User.Create();
ErrorOr<int> result = User.Create();

if (result.IsError)
{
Expand All @@ -278,7 +278,7 @@ if (result.IsError)
## `FirstError`

```cs
ErrorOr<int> foo = User.Create();
ErrorOr<int> result = User.Create();

if (result.IsError)
{
Expand All @@ -290,7 +290,7 @@ if (result.IsError)
## `ErrorsOrEmptyList`

```cs
ErrorOr<int> foo = User.Create();
ErrorOr<int> result = User.Create();

if (result.IsError)
{
Expand Down

0 comments on commit c3eadff

Please sign in to comment.