Skip to content

Commit 929af41

Browse files
authored
Merge pull request #2898 from Vrajs16/fix-docs
Fixed docs
2 parents c55aba0 + e214a08 commit 929af41

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sqlx-core/src/row.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub trait Row: Unpin + Send + Sync + 'static {
4242
self.try_column(index).unwrap()
4343
}
4444

45-
/// Gets the column information at `index` or `None` if out of bounds.
45+
/// Gets the column information at `index` or a `ColumnIndexOutOfBounds` error if out of bounds.
4646
fn try_column<I>(&self, index: I) -> Result<&<Self::Database as Database>::Column, Error>
4747
where
4848
I: ColumnIndex<Self>,

sqlx-core/src/statement.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub trait Statement<'q>: Send + Sync {
5151
self.try_column(index).unwrap()
5252
}
5353

54-
/// Gets the column information at `index` or `None` if out of bounds.
54+
/// Gets the column information at `index` or a `ColumnIndexOutOfBounds` error if out of bounds.
5555
fn try_column<I>(&self, index: I) -> Result<&<Self::Database as Database>::Column, Error>
5656
where
5757
I: ColumnIndex<Self>,

0 commit comments

Comments
 (0)