diff options
author | HampusM <hampus@hampusmat.com> | 2022-08-03 14:40:42 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-08-21 18:17:50 +0200 |
commit | cc4a5081e259ed798613175d116a34162bc657fa (patch) | |
tree | c3403054d5b277d904fb504336a512bfbf0f498f /README.md | |
parent | b28ebe3007afbe3c581eb54df4c0baa26a9f508f (diff) |
docs: correct examples
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(); |