diff --git a/README.md b/README.md index 8c2871e5..d1d14ba6 100644 --- a/README.md +++ b/README.md @@ -178,10 +178,10 @@ let pool = PostgresConnectionPool::new("postgres://postgres@localhost", for _ in range(0, 10) { let pool = pool.clone(); - do task::spawn { + spawn(proc() { let conn = pool.get_connection(); conn.query(...); - } + }) } ```