From 8cdad44366cb49d0d0278e02f3bb3c2481883a3e Mon Sep 17 00:00:00 2001 From: Sam Lyon Date: Wed, 19 Feb 2025 18:23:45 -0500 Subject: [PATCH] docs: add some missing backticks (#3749) * add ending backticks to starting backticks that were missing them * fix table alignment --- sqlx-mysql/src/testing/mod.rs | 2 +- sqlx-postgres/src/testing/mod.rs | 2 +- sqlx-postgres/src/types/cube.rs | 4 ++-- sqlx-postgres/src/types/mod.rs | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sqlx-mysql/src/testing/mod.rs b/sqlx-mysql/src/testing/mod.rs index 9e462c11..1981cf73 100644 --- a/sqlx-mysql/src/testing/mod.rs +++ b/sqlx-mysql/src/testing/mod.rs @@ -30,7 +30,7 @@ impl TestSupport for MySql { Box::pin(async move { let mut conn = MASTER_POOL .get() - .expect("cleanup_test() invoked outside `#[sqlx::test]") + .expect("cleanup_test() invoked outside `#[sqlx::test]`") .acquire() .await?; diff --git a/sqlx-postgres/src/testing/mod.rs b/sqlx-postgres/src/testing/mod.rs index a927191d..373bd772 100644 --- a/sqlx-postgres/src/testing/mod.rs +++ b/sqlx-postgres/src/testing/mod.rs @@ -30,7 +30,7 @@ impl TestSupport for Postgres { Box::pin(async move { let mut conn = MASTER_POOL .get() - .expect("cleanup_test() invoked outside `#[sqlx::test]") + .expect("cleanup_test() invoked outside `#[sqlx::test]`") .acquire() .await?; diff --git a/sqlx-postgres/src/types/cube.rs b/sqlx-postgres/src/types/cube.rs index f39d8265..cc2a0160 100644 --- a/sqlx-postgres/src/types/cube.rs +++ b/sqlx-postgres/src/types/cube.rs @@ -20,7 +20,7 @@ const IS_POINT_FLAG: u32 = 1 << 31; #[derive(Debug, Clone, PartialEq)] pub enum PgCube { /// A one-dimensional point. - // FIXME: `Point1D(f64) + // FIXME: `Point1D(f64)` Point(f64), /// An N-dimensional point ("represented internally as a zero-volume cube"). // FIXME: `PointND(f64)` @@ -32,7 +32,7 @@ pub enum PgCube { // FIXME: add `Cube3D { lower_left: [f64; 3], upper_right: [f64; 3] }`? /// An N-dimensional cube with points representing lower-left and upper-right corners, respectively. - // FIXME: CubeND { lower_left: Vec, upper_right: Vec }` + // FIXME: `CubeND { lower_left: Vec, upper_right: Vec }` MultiDimension(Vec>), } diff --git a/sqlx-postgres/src/types/mod.rs b/sqlx-postgres/src/types/mod.rs index e53f88ff..a5fd7083 100644 --- a/sqlx-postgres/src/types/mod.rs +++ b/sqlx-postgres/src/types/mod.rs @@ -21,10 +21,10 @@ //! | [`PgLQuery`] | LQUERY | //! | [`PgCiText`] | CITEXT1 | //! | [`PgCube`] | CUBE | -//! | [`PgPoint] | POINT | -//! | [`PgLine] | LINE | -//! | [`PgLSeg] | LSEG | -//! | [`PgBox] | BOX | +//! | [`PgPoint`] | POINT | +//! | [`PgLine`] | LINE | +//! | [`PgLSeg`] | LSEG | +//! | [`PgBox`] | BOX | //! | [`PgHstore`] | HSTORE | //! //! 1 SQLx generally considers `CITEXT` to be compatible with `String`, `&str`, etc.,