aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 50dc5ac..5ff2d88 100644
--- a/README.md
+++ b/README.md
@@ -92,9 +92,9 @@ fn main()
{
let mut di_container = DIContainer::new();
- di_container.bind::<dyn IWeapon>().to::<Sword>();
+ di_container.bind::<dyn IWeapon>().to::<Sword>().unwrap();
- di_container.bind::<dyn IWarrior>().to::<Warrior>();
+ di_container.bind::<dyn IWarrior>().to::<Warrior>().unwrap();
let warrior = di_container.get::<dyn IWarrior>().unwrap();