aboutsummaryrefslogtreecommitdiff
path: root/examples/with-3rd-party
diff options
context:
space:
mode:
Diffstat (limited to 'examples/with-3rd-party')
-rw-r--r--examples/with-3rd-party/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/with-3rd-party/main.rs b/examples/with-3rd-party/main.rs
index dd4c21f..e48c78f 100644
--- a/examples/with-3rd-party/main.rs
+++ b/examples/with-3rd-party/main.rs
@@ -17,7 +17,7 @@ fn main() -> Result<(), Box<dyn Error>>
let di_container = bootstrap()?;
- let ninja = di_container.get::<dyn INinja>()?;
+ let ninja = di_container.get::<dyn INinja>()?.transient()?;
ninja.throw_shuriken();