Skip to content

Commit

Permalink
Merge pull request #63 from anonymous2585/main
Browse files Browse the repository at this point in the history
Fix documentation sample ContainerBuilder constructor
  • Loading branch information
gustavopsantos authored Aug 15, 2024
2 parents 803d520 + 827a270 commit 13d9685
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,13 +384,13 @@ It's recommended for every binding that you know that there should be a single b
Example:
```csharp
private void Documentation_Bindings()
{
var container = new ContainerBuilder("")
.AddSingleton(1)
.AddSingleton(2)
.AddSingleton(3)
.Build();
{
var container = new ContainerBuilder()
.AddSingleton(1)
.AddSingleton(2)
.AddSingleton(3)
.Build();

Debug.Log(string.Join(", ", container.All<int>())); // Prints: 1, 2, 3
}
```
Expand Down

0 comments on commit 13d9685

Please sign in to comment.