From 3fbf26181f1b4b9e594debb103fd347bd93240ea Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 27 Jul 2022 15:17:33 +0200 Subject: refactor!: rename InterfacePtr to TransientPtr BREAKING CHANGE: InterfacePtr has been renamed to TransientPtr --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'README.md') 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, + weapon: TransientPtr, } #[injectable(IWarrior)] impl Warrior { - fn new(weapon: InterfacePtr) -> Self + fn new(weapon: TransientPtr) -> Self { Self { weapon } } -- cgit v1.2.3-18-g5258