Skip to content

Commit 1aabcdb

Browse files
committed
Use h1s in docs
1 parent 9e4c30a commit 1aabcdb

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

src/lib.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ pub struct CancelData {
257257
/// Only the host and port of the connection info are used. See
258258
/// `Connection::connect` for details of the `params` argument.
259259
///
260-
/// ## Example
260+
/// # Example
261261
///
262262
/// ```rust,no_run
263263
/// # use postgres::{Connection, SslMode};
@@ -869,7 +869,7 @@ impl Connection {
869869
/// struct should be created manually and passed in. Note that Postgres
870870
/// does not support SSL over Unix sockets.
871871
///
872-
/// ## Examples
872+
/// # Examples
873873
///
874874
/// ```rust,no_run
875875
/// # use postgres::{Connection, SslMode};
@@ -932,7 +932,7 @@ impl Connection {
932932
/// The statement is associated with the connection that created it and may
933933
/// not outlive that connection.
934934
///
935-
/// ## Example
935+
/// # Example
936936
///
937937
/// ```rust,no_run
938938
/// # use postgres::{Connection, SslMode};
@@ -953,7 +953,7 @@ impl Connection {
953953
/// is going to be used frequently, caching it can improve performance by
954954
/// reducing the number of round trips to the Postgres backend.
955955
///
956-
/// ## Example
956+
/// # Example
957957
///
958958
/// ```rust,no_run
959959
/// # use postgres::{Connection, SslMode};
@@ -976,15 +976,15 @@ impl Connection {
976976
/// the connection for the duration of the transaction. The transaction
977977
/// is active until the `Transaction` object falls out of scope.
978978
///
979-
/// ## Note
979+
/// # Note
980980
/// A transaction will roll back by default. The `set_commit`,
981981
/// `set_rollback`, and `commit` methods alter this behavior.
982982
///
983-
/// ## Panics
983+
/// # Panics
984984
///
985985
/// Panics if a transaction is already active.
986986
///
987-
/// ## Example
987+
/// # Example
988988
///
989989
/// ```rust,no_run
990990
/// # use postgres::{Connection, SslMode};
@@ -1017,7 +1017,7 @@ impl Connection {
10171017
///
10181018
/// This is a simple wrapper around `SET TRANSACTION ISOLATION LEVEL ...`.
10191019
///
1020-
/// ## Note
1020+
/// # Note
10211021
///
10221022
/// This will not change the behavior of an active transaction.
10231023
pub fn set_transaction_isolation(&self, level: IsolationLevel) -> Result<()> {
@@ -1041,7 +1041,7 @@ impl Connection {
10411041
///
10421042
/// On success, returns the number of rows modified or 0 if not applicable.
10431043
///
1044-
/// ## Panics
1044+
/// # Panics
10451045
///
10461046
/// Panics if the number of parameters provided does not match the number
10471047
/// expected.
@@ -1063,14 +1063,14 @@ impl Connection {
10631063
/// execution of batches of non-dynamic statements - for example, creation
10641064
/// of a schema for a fresh database.
10651065
///
1066-
/// ## Warning
1066+
/// # Warning
10671067
///
10681068
/// Prepared statements should be used for any SQL statement which contains
10691069
/// user-specified data, as it provides functionality to safely embed that
10701070
/// data in the statement. Do not form statements via string concatenation
10711071
/// and feed them into this method.
10721072
///
1073-
/// ## Example
1073+
/// # Example
10741074
///
10751075
/// ```rust,no_run
10761076
/// # use postgres::{Connection, Result};
@@ -1204,7 +1204,7 @@ impl<'conn> Transaction<'conn> {
12041204

12051205
/// Like `Connection::transaction`.
12061206
///
1207-
/// ## Panics
1207+
/// # Panics
12081208
///
12091209
/// Panics if there is an active nested transaction.
12101210
pub fn transaction<'a>(&'a self) -> Result<Transaction<'a>> {

src/rows.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,12 @@ impl<'a> Row<'a> {
215215
/// A field can be accessed by the name or index of its column, though
216216
/// access by index is more efficient. Rows are 0-indexed.
217217
///
218-
/// ## Panics
218+
/// # Panics
219219
///
220220
/// Panics if the index does not reference a column or the return type is
221221
/// not compatible with the Postgres type.
222222
///
223-
/// ## Example
223+
/// # Example
224224
///
225225
/// ```rust,no_run
226226
/// # use postgres::{Connection, SslMode};
@@ -243,7 +243,7 @@ impl<'a> Row<'a> {
243243

244244
/// Retrieves the specified field as a raw buffer of Postgres data.
245245
///
246-
/// ## Panics
246+
/// # Panics
247247
///
248248
/// Panics if the index does not reference a column.
249249
pub fn get_bytes<I>(&self, idx: I) -> Option<&[u8]>

src/stmt.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ impl<'conn> Statement<'conn> {
146146
///
147147
/// If the statement does not modify any rows (e.g. SELECT), 0 is returned.
148148
///
149-
/// ## Panics
149+
/// # Panics
150150
///
151151
/// Panics if the number of parameters provided does not match the number
152152
/// expected.
153153
///
154-
/// ## Example
154+
/// # Example
155155
///
156156
/// ```rust,no_run
157157
/// # use postgres::{Connection, SslMode};
@@ -219,12 +219,12 @@ impl<'conn> Statement<'conn> {
219219

220220
/// Executes the prepared statement, returning the resulting rows.
221221
///
222-
/// ## Panics
222+
/// # Panics
223223
///
224224
/// Panics if the number of parameters provided does not match the number
225225
/// expected.
226226
///
227-
/// ## Example
227+
/// # Example
228228
///
229229
/// ```rust,no_run
230230
/// # use postgres::{Connection, SslMode};
@@ -257,7 +257,7 @@ impl<'conn> Statement<'conn> {
257257
/// object representing the active transaction must be passed to
258258
/// `lazy_query`.
259259
///
260-
/// ## Panics
260+
/// # Panics
261261
///
262262
/// Panics if the provided `Transaction` is not associated with the same
263263
/// `Connection` as this `Statement`, if the `Transaction` is not

0 commit comments

Comments
 (0)