diff --git a/site/guide/state.md b/site/guide/state.md index e4faac4c..cc7f1fb4 100644 --- a/site/guide/state.md +++ b/site/guide/state.md @@ -212,7 +212,7 @@ type SqlitePool = Pool>; static DATABASE_URL: &'static str = env!("DATABASE_URL"); /// Initializes a database pool. -fn init_pool() -> Pool { +fn init_pool() -> SqlitePool { let manager = ConnectionManager::::new(DATABASE_URL); Pool::new(manager).expect("db pool") }