aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index f4f0e13..df3b50a 100644
--- a/README.md
+++ b/README.md
@@ -33,7 +33,7 @@ The goal of Syrette is to be a simple, useful, convenient and familiar DI librar
## Example usage
```rust
use syrette::{injectable, DIContainer};
-use syrette::ptr::InterfacePtr;
+use syrette::ptr::TransientPtr;
trait IWeapon
{
@@ -65,13 +65,13 @@ trait IWarrior
}
struct Warrior {
- weapon: InterfacePtr<dyn IWeapon>,
+ weapon: TransientPtr<dyn IWeapon>,
}
#[injectable(IWarrior)]
impl Warrior
{
- fn new(weapon: InterfacePtr<dyn IWeapon>) -> Self
+ fn new(weapon: TransientPtr<dyn IWeapon>) -> Self
{
Self { weapon }
}