aboutsummaryrefslogtreecommitdiff
path: root/examples/unbound/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/unbound/main.rs')
-rw-r--r--examples/unbound/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/unbound/main.rs b/examples/unbound/main.rs
index 031a691..e9a8feb 100644
--- a/examples/unbound/main.rs
+++ b/examples/unbound/main.rs
@@ -19,11 +19,11 @@ fn main() -> Result<(), Box<dyn Error>>
let di_container = bootstrap()?;
- let dog = di_container.get_singleton::<dyn IDog>()?;
+ let dog = di_container.get::<dyn IDog>()?.singleton()?;
dog.woof();
- let human = di_container.get::<dyn IHuman>()?;
+ let human = di_container.get::<dyn IHuman>()?.transient()?;
human.make_pets_make_sounds();