From e214a08ede25e2ccccba7b18ff14d7763b419311 Mon Sep 17 00:00:00 2001 From: Vraj Shah Date: Sat, 25 Nov 2023 10:11:00 -0500 Subject: [PATCH] Fixed docs --- Cargo.lock | 4 ++-- sqlx-core/src/row.rs | 2 +- sqlx-core/src/statement.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7f45654a..84f95476 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1876,9 +1876,9 @@ dependencies = [ [[package]] name = "libsqlite3-sys" -version = "0.26.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afc22eff61b133b115c6e8c74e818c628d6d5e7a502afea6f64dee076dd94326" +checksum = "cf4e226dcd58b4be396f7bd3c20da8fdee2911400705297ba7d2d7cc2c30f716" dependencies = [ "cc", "pkg-config", diff --git a/sqlx-core/src/row.rs b/sqlx-core/src/row.rs index 6a09fa0d..ec7ca7ec 100644 --- a/sqlx-core/src/row.rs +++ b/sqlx-core/src/row.rs @@ -42,7 +42,7 @@ pub trait Row: Unpin + Send + Sync + 'static { self.try_column(index).unwrap() } - /// Gets the column information at `index` or `None` if out of bounds. + /// Gets the column information at `index` or a `ColumnIndexOutOfBounds` error if out of bounds. fn try_column(&self, index: I) -> Result<&::Column, Error> where I: ColumnIndex, diff --git a/sqlx-core/src/statement.rs b/sqlx-core/src/statement.rs index e857a9e8..83079a46 100644 --- a/sqlx-core/src/statement.rs +++ b/sqlx-core/src/statement.rs @@ -51,7 +51,7 @@ pub trait Statement<'q>: Send + Sync { self.try_column(index).unwrap() } - /// Gets the column information at `index` or `None` if out of bounds. + /// Gets the column information at `index` or a `ColumnIndexOutOfBounds` error if out of bounds. fn try_column(&self, index: I) -> Result<&::Column, Error> where I: ColumnIndex,