Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
miladrahimi authored Dec 3, 2021
1 parent 7f1fa9d commit f88df87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ err := container.NamedTransient("noSql" func() Database {
})
```

### Bind Errors
### Resolver Errors

The process of creating concrete (resolving) might face an error.
The resolver function can also return an like the following example.
In this case, you can return the error as the second return value like the example below.

```go
err := container.Transient(func() (Shape, error) {
Expand Down

0 comments on commit f88df87

Please sign in to comment.