From c71815c6758a8cd3970ba765507a1ea53255693f Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Fri, 25 Jul 2014 17:56:43 -0700 Subject: [PATCH] Clean up example --- src/lib/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/lib.rs b/src/lib/lib.rs index df9acc95..54d20de2 100644 --- a/src/lib/lib.rs +++ b/src/lib/lib.rs @@ -851,7 +851,7 @@ impl PostgresConnection { /// ```rust,no_run /// # use postgres::{PostgresConnection, PostgresResult}; /// fn init_db(conn: &PostgresConnection) -> PostgresResult<()> { - /// static INIT_DB: &'static str = " + /// conn.batch_execute(" /// CREATE TABLE person ( /// id SERIAL PRIMARY KEY, /// name NOT NULL @@ -864,8 +864,7 @@ impl PostgresConnection { /// ); /// /// CREATE INDEX ON purchase (time); - /// "; - /// conn.batch_execute(INIT_DB) + /// ") /// } /// ``` pub fn batch_execute(&self, query: &str) -> PostgresResult<()> {