diff options
Diffstat (limited to 'examples/basic/main.rs')
-rw-r--r-- | examples/basic/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/basic/main.rs b/examples/basic/main.rs index f96d963..3a937c3 100644 --- a/examples/basic/main.rs +++ b/examples/basic/main.rs @@ -16,7 +16,7 @@ fn main() let di_container = bootstrap(); - let dog = di_container.get::<dyn IDog>().unwrap(); + let dog = di_container.get_singleton::<dyn IDog>().unwrap(); dog.woof(); |