diff --git a/README.md b/README.md index 2b79411..539e3e0 100644 --- a/README.md +++ b/README.md @@ -296,8 +296,16 @@ public ErrorOr MultipleErrorsToErrorOr() ## Using The `ToErrorOr` Extension Method +### Values + ```cs ErrorOr result = 5.ToErrorOr(); +ErrorOr result = await Task.FromResult(5).ToErrorOrAsync(); +``` + +### Errors + +```cs ErrorOr result = Error.Unexpected().ToErrorOr(); ErrorOr result = new[] { Error.Validation(), Error.Validation() }.ToErrorOr(); ```