Skip to content

Commit ea06266

Browse files
authored
correted docs (#128)
1 parent 38a39e0 commit ea06266

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

volga/src/di/dc.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,10 @@ use std::{
1919
sync::Arc
2020
};
2121

22-
/// `Dc` stands for Dependency Container.
22+
/// `Dc` stands for Dependency Container.
23+
///
2324
/// This struct wraps an injectable type `T` that is **shared** between all handlers
2425
/// through an [`Arc`].
25-
///
26-
/// Use this version for long-lived or shared services (e.g., caches, database pools, or
27-
/// other stateful components).
28-
///
29-
/// Unlike [`DcOwned`], which clones the value from the container, `Dc` provides a
30-
/// cheap-to-clone shared reference via [`Arc<T>`].
3126
///
3227
/// # Example
3328
/// ```no_run

0 commit comments

Comments
 (0)