Skip to content

Commit 749dc34

Browse files
committed
Clean up example a bit
1 parent b69ae99 commit 749dc34

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,8 +874,7 @@ impl PostgresConnection {
874874
/// try!(trans.execute("UPDATE foo SET bar = 10", []));
875875
/// // ...
876876
///
877-
/// trans.set_commit();
878-
/// try!(trans.finish());
877+
/// try!(trans.commit());
879878
/// # Ok(())
880879
/// # }
881880
/// ```

0 commit comments

Comments
 (0)