@@ -257,7 +257,7 @@ pub struct CancelData {
257
257
/// Only the host and port of the connection info are used. See
258
258
/// `Connection::connect` for details of the `params` argument.
259
259
///
260
- /// ## Example
260
+ /// # Example
261
261
///
262
262
/// ```rust,no_run
263
263
/// # use postgres::{Connection, SslMode};
@@ -869,7 +869,7 @@ impl Connection {
869
869
/// struct should be created manually and passed in. Note that Postgres
870
870
/// does not support SSL over Unix sockets.
871
871
///
872
- /// ## Examples
872
+ /// # Examples
873
873
///
874
874
/// ```rust,no_run
875
875
/// # use postgres::{Connection, SslMode};
@@ -932,7 +932,7 @@ impl Connection {
932
932
/// The statement is associated with the connection that created it and may
933
933
/// not outlive that connection.
934
934
///
935
- /// ## Example
935
+ /// # Example
936
936
///
937
937
/// ```rust,no_run
938
938
/// # use postgres::{Connection, SslMode};
@@ -953,7 +953,7 @@ impl Connection {
953
953
/// is going to be used frequently, caching it can improve performance by
954
954
/// reducing the number of round trips to the Postgres backend.
955
955
///
956
- /// ## Example
956
+ /// # Example
957
957
///
958
958
/// ```rust,no_run
959
959
/// # use postgres::{Connection, SslMode};
@@ -976,15 +976,15 @@ impl Connection {
976
976
/// the connection for the duration of the transaction. The transaction
977
977
/// is active until the `Transaction` object falls out of scope.
978
978
///
979
- /// ## Note
979
+ /// # Note
980
980
/// A transaction will roll back by default. The `set_commit`,
981
981
/// `set_rollback`, and `commit` methods alter this behavior.
982
982
///
983
- /// ## Panics
983
+ /// # Panics
984
984
///
985
985
/// Panics if a transaction is already active.
986
986
///
987
- /// ## Example
987
+ /// # Example
988
988
///
989
989
/// ```rust,no_run
990
990
/// # use postgres::{Connection, SslMode};
@@ -1017,7 +1017,7 @@ impl Connection {
1017
1017
///
1018
1018
/// This is a simple wrapper around `SET TRANSACTION ISOLATION LEVEL ...`.
1019
1019
///
1020
- /// ## Note
1020
+ /// # Note
1021
1021
///
1022
1022
/// This will not change the behavior of an active transaction.
1023
1023
pub fn set_transaction_isolation ( & self , level : IsolationLevel ) -> Result < ( ) > {
@@ -1041,7 +1041,7 @@ impl Connection {
1041
1041
///
1042
1042
/// On success, returns the number of rows modified or 0 if not applicable.
1043
1043
///
1044
- /// ## Panics
1044
+ /// # Panics
1045
1045
///
1046
1046
/// Panics if the number of parameters provided does not match the number
1047
1047
/// expected.
@@ -1063,14 +1063,14 @@ impl Connection {
1063
1063
/// execution of batches of non-dynamic statements - for example, creation
1064
1064
/// of a schema for a fresh database.
1065
1065
///
1066
- /// ## Warning
1066
+ /// # Warning
1067
1067
///
1068
1068
/// Prepared statements should be used for any SQL statement which contains
1069
1069
/// user-specified data, as it provides functionality to safely embed that
1070
1070
/// data in the statement. Do not form statements via string concatenation
1071
1071
/// and feed them into this method.
1072
1072
///
1073
- /// ## Example
1073
+ /// # Example
1074
1074
///
1075
1075
/// ```rust,no_run
1076
1076
/// # use postgres::{Connection, Result};
@@ -1204,7 +1204,7 @@ impl<'conn> Transaction<'conn> {
1204
1204
1205
1205
/// Like `Connection::transaction`.
1206
1206
///
1207
- /// ## Panics
1207
+ /// # Panics
1208
1208
///
1209
1209
/// Panics if there is an active nested transaction.
1210
1210
pub fn transaction < ' a > ( & ' a self ) -> Result < Transaction < ' a > > {
0 commit comments